I am using the following command to build command to build statically linked executables
go install -tags netgo,osusergo -v -ldflags="-extldflags '-static' -linkmode 'external'" ./...
Everything works fine (binaries are build and work correctly) but I get this warning:
loadinternal: cannot find runtime/cgo
Is that harmless?
Paolo