Skip to content

Commit

Permalink
Merge pull request #6 from dobsonj/build-using-vendor-dir-merge
Browse files Browse the repository at this point in the history
Make build should use vendor directory
  • Loading branch information
openshift-merge-robot committed Oct 18, 2021
2 parents 863aa26 + 59c1ddc commit bafda46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -77,7 +77,7 @@ lint:

.PHONY: build
build:
CGO_ENABLED=0 GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) go build -mod=mod -a -ldflags '-X main.vendorVersion='"${DRIVER_NAME}-${GIT_COMMIT_SHA}"' -extldflags "-static"' -o ${GOPATH}/bin/${EXE_DRIVER_NAME} ./cmd/
CGO_ENABLED=0 GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) go build -mod=vendor -a -ldflags '-X main.vendorVersion='"${DRIVER_NAME}-${GIT_COMMIT_SHA}"' -extldflags "-static"' -o ${GOPATH}/bin/${EXE_DRIVER_NAME} ./cmd/

.PHONY: verify
verify:
Expand Down

0 comments on commit bafda46

Please sign in to comment.