On 8/17/19 1:02 PM, Bruno Kleinert wrote:
[…]
cd _build/src/github.com/syncthing/syncthing && go run script/genassets.go gui
lib/auto/gui.files.go
build cache is disabled by GOCACHE=off, but required as of Go 1.12
make[1]: *** [debian/rules:54: override_dh_auto_configure] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:34: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
[…]

You must set GOCACHE to a directory inside the build directory. This is needed since Go 1.12, as the error message hints.

For an example see: https://salsa.debian.org/go-team/packages/golang-github-docker-docker-credential-helpers/commit/397ff4dd01216ede71468ccffd7b2d25078a5ff3

Cheers,

  Arnaud

Reply via email to