Skip to content

Commit 9ba5030

Browse files
committed
Don't use go's -i flag anymore
See: golang/go#27285
1 parent 1f537f6 commit 9ba5030

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Makefile

+3-6
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,15 @@ build-dirs:
6060

6161
.PHONY: oci-cloud-controller-manager
6262
oci-cloud-controller-manager: build-dirs
63-
@GOOS=$(GOOS) GOARCH=$(ARCH) go build \
64-
-i \
65-
-o dist/oci-cloud-controller-manager \
66-
-installsuffix "static" \
63+
@GOOS=$(GOOS) GOARCH=$(ARCH) go build \
64+
-o dist/oci-cloud-controller-manager \
65+
-installsuffix "static" \
6766
-ldflags "-X main.version=$(VERSION) -X main.build=$(BUILD)" \
6867
./cmd/oci-cloud-controller-manager
6968

7069
.PHONY: oci-volume-provisioner
7170
oci-volume-provisioner: build-dirs
7271
@GOOS=$(GOOS) GOARCH=$(ARCH) CGO_ENABLED=0 go build \
73-
-i \
7472
-o dist/oci-volume-provisioner \
7573
-ldflags="-s -w -X main.version=${VERSION} -X main.build=${BUILD} -extldflags -static" \
7674
./cmd/oci-volume-provisioner
@@ -79,7 +77,6 @@ oci-volume-provisioner: build-dirs
7977
.PHONY: oci-flexvolume-driver
8078
oci-flexvolume-driver: build-dirs
8179
@GOOS=$(GOOS) GOARCH=$(ARCH) CGO_ENABLED=0 go build \
82-
-i \
8380
-o dist/oci-flexvolume-driver \
8481
-ldflags="-s -w -X main.version=$(VERSION) -X main.build=$(BUILD)" \
8582
./cmd/oci-flexvolume-driver/

hack/test.sh

-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ export CGO_ENABLED=0
2222

2323
TARGETS=$(for d in "$@"; do echo ./$d/...; done)
2424

25-
echo "Building tests..."
26-
go test -i -installsuffix "static" ${TARGETS}
2725
echo "Running tests..."
2826
go test -v -installsuffix "static" ${TARGETS}

0 commit comments

Comments
 (0)