File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 66VERSION=$( cat VERSION)
77
88echo " Building version $VERSION "
9- go build -ldflags " -X github.com/codefresh-io/go/venona/cmd.version=$VERSION " -o venona * .go
9+ CGO_ENABLED=0 go build -ldflags " -X github.com/codefresh-io/go/venona/cmd.version=$VERSION " -o venona * .go
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ go generate ${DIR}/hack/generate.go
66go fmt ${DIR} /pkg/obj/kubeobj/kubeobj.go
77go fmt ${DIR} /pkg/templates/kubernetes/templates.go
88
9- GOOS=linux go build -gcflags=all=" -N -l" -ldflags ' -X github.com/codefresh-io/venona/venonactl/cmd.localDevFlow=true' -o $OUTFILE ${DIR}
9+ CGO_ENABLED=0 GOOS=linux go build -gcflags=all=" -N -l" -ldflags ' -X github.com/codefresh-io/venona/venonactl/cmd.localDevFlow=true' -o $OUTFILE ${DIR}
1010
1111chmod +x $OUTFILE
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ go fmt ${PWD}/pkg/obj/kubeobj/kubeobj.go
66go fmt ${PWD} /pkg/templates/kubernetes/templates.go
77VERSION=" $( cat VERSION) -$( git rev-parse --short HEAD) "
88echo " Setting up version $VERSION "
9- go build -ldflags " -X github.com/codefresh-io/venona/venonactl/cmd.version=$VERSION " -v -o $OUTFILE main.go
9+ CGO_ENABLED=0 go build -ldflags " -X github.com/codefresh-io/venona/venonactl/cmd.version=$VERSION " -v -o $OUTFILE main.go
1010
1111chmod +x $OUTFILE
You can’t perform that action at this time.
0 commit comments