go reproducible builds
reproducible builds in Go
- use Go1.13+
CGO_ENABLED=0
: haven't had the time to figure out otherwisego mod vendor
- modules and proxies should help but this is the only way to make sure nothing changes out from under you, have all your sources
go build -mod=vendor -trimpath
- trims the filesystem of the build environment from the resulting binary