Merge pull request #4856 from rainzm/bugfix/esxi-agent_build

fix(esxi-agent): Export CGO_ENABLED=0 when building esxi-agent
This commit is contained in:
Zexi Li
2020-01-13 20:49:18 +08:00
committed by GitHub
+3
View File
@@ -83,6 +83,9 @@ test:
vet:
go vet ./...
cmd/esxi-agent: prepare_dir
CGO_ENABLED=0 $(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@
cmd/%: prepare_dir
$(GO_BUILD) -o $(BIN_DIR)/$(shell basename $@) $(REPO_PREFIX)/$@