Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 43cb207

Browse files
authored
fix(csi-external-resizer): make patch for v1.1.0+, #205 (#204)
In the upstream build.make, line 74 was pushed to line 79 and the FULL_LDFLAGS abstraction was introduced. See kubernetes-csi/external-resizer#122 Signed-off-by: Andrew Zammit <[email protected]>
1 parent 5dd773d commit 43cb207

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
--- build.make 2020-09-27 11:10:40.917111259 +0100
2-
+++ build.make.new 2020-09-27 11:10:47.241142618 +0100
3-
@@ -74,7 +74,7 @@
1+
--- build.make 2021-02-21 19:14:05.314519040 -0700
2+
+++ build.make.new 2021-02-21 19:13:52.714757257 -0700
3+
@@ -79,7 +79,7 @@
44
$(CMDS:%=build-%): build-%: check-go-version-go
55
mkdir -p bin
66
echo '$(BUILD_PLATFORMS)' | tr ';' '\n' | while read -r os arch suffix; do \
7-
- if ! (set -x; CGO_ENABLED=0 GOOS="$$os" GOARCH="$$arch" go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o "./bin/$*$$suffix" ./cmd/$*); then \
8-
+ if ! (set -x; CGO_ENABLED=0 GOOS="$$os" go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o "./bin/$*$$suffix" ./cmd/$*); then \
7+
- if ! (set -x; CGO_ENABLED=0 GOOS="$$os" GOARCH="$$arch" go build $(GOFLAGS_VENDOR) -a -ldflags '$(FULL_LDFLAGS)' -o "./bin/$*$$suffix" ./cmd/$*); then \
8+
+ if ! (set -x; CGO_ENABLED=0 GOOS="$$os" go build $(GOFLAGS_VENDOR) -a -ldflags '$(FULL_LDFLAGS)' -o "./bin/$*$$suffix" ./cmd/$*); then \
99
echo "Building $* for GOOS=$$os GOARCH=$$arch failed, see error(s) above."; \
1010
exit 1; \
1111
fi; \

0 commit comments

Comments
 (0)