I started to write a package definition for buildroot:
However, the compilation fails with:
can't load package: package github.com/syncthing/syncthing: build constraints exclude all Go files in /[...]/build/syncthing-1.13.1/_gopath/src/github.com/syncthing/syncthing
In my initial research I came to the conclusion that it might be related to CGO: cmd/go: give a better error message when building Go package with CGO_ENABLED=0 · Issue #24068 · golang/go · GitHub
However, activating CGO as mentioned in the buildroot documentation does not solve my problem.
Until now, nobody could help me at the buildroot mailing list. Therefore, any hints how I could track down the issue would be highly appreciated, as I never used GOLANG before.