Skip to content

Commit

Permalink
Fix makefile error
Browse files Browse the repository at this point in the history
Make failed when GOPATH was set as it was overwritten in the make
script.
Used another name for output variable.

Signed-off-by: Kobi Samoray <kobi.samoray@broadcom.com>
  • Loading branch information
ksamoray committed May 28, 2024
1 parent 5308952 commit bac3c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
PKG_NAME=nsxt
GIT_COMMIT=$$(git rev-list -1 HEAD)
GOPATH=$$(go env GOPATH)
BUILD_PATH=$$(go env GOPATH)

default: build

Expand All @@ -16,7 +16,7 @@ build: fmtcheck
go install -ldflags "-X github.com/vmware/terraform-provider-nsxt/nsxt.GitCommit=$(GIT_COMMIT)"

build-coverage:
go build -cover -ldflags "-X github.com/vmware/terraform-provider-nsxt/nsxt.GitCommit=$(GIT_COMMIT)" -o $(GOPATH)/bin
go build -cover -ldflags "-X github.com/vmware/terraform-provider-nsxt/nsxt.GitCommit=$(GIT_COMMIT)" -o $(BUILD_PATH)/bin

test: fmtcheck
go test -i $(TEST) || exit 1
Expand Down

0 comments on commit bac3c5c

Please sign in to comment.