“no Go source files” while installing Gogs on Raspberry Pi

I was faced this error while installing Gogs on my Raspberry Pi.

no Go source files in <path>

Finally, I figured out what was happening. It is because I installed the old version of Go from apt-get and didn’t remove it completely.

  1. You should type “apt-get remove golang-*” to remove all related Go packages.
  2. Then follow this tutorial to install the newer version of Go and Gogs:

http://blog.meinside.pe.kr/Gogs-on-Raspberry-Pi/