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.
- You should type “apt-get remove golang-*” to remove all related Go packages.
- Then follow this tutorial to install the newer version of Go and Gogs: