Using docker image golang:1.13-alpine to build our code : - Compiling with "go install -v oursoftware/..." our build is *sucessfull* - Compiling with "go install -v *-trimpath* oursoftware/..." *fails* with following error :
... runtime runtime/cgo vendor/golang.org/x/crypto/curve25519 # runtime/cgo exec: "gcc": executable file not found in $PATH encoding ... We can for sure install the build tools upon the base image to solve the issue, but it doesn't seem normal that the "-trimpath" option had this side-effect ? Can someone explain why it happens ? The content of our go.mod if it helps : go 1.13 require ( github.com/BurntSushi/toml v0.3.1 github.com/davecgh/go-spew v1.1.1 github.com/gin-gonic/gin v1.4.0 github.com/go-openapi/errors v0.19.2 github.com/go-openapi/strfmt v0.19.3 github.com/go-openapi/swag v0.19.5 github.com/go-openapi/validate v0.19.4 github.com/gofrs/uuid v3.2.0+incompatible github.com/google/uuid v1.1.1 github.com/nicksnyder/go-i18n/v2 v2.0.3 github.com/prometheus/client_golang v1.2.1 github.com/rogpeppe/go-charset v0.0.0-20190617161244-0dc95cdf6f31 github.com/spf13/viper v1.4.0 github.com/stretchr/testify v1.4.0 go.mongodb.org/mongo-driver v1.1.2 // indirect go.uber.org/atomic v1.4.0 go.uber.org/zap v1.11.0 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be golang.org/x/text v0.3.2 gopkg.in/yaml.v2 v2.2.4 ) Thanks ! Florent Bonneau -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2df7307a-233c-42ab-80c8-08a006707418%40googlegroups.com.