Skip to content

Commit

Permalink
fix(csi-external-resizer): make patch for v1.1.0+ compatibility
Browse files Browse the repository at this point in the history
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 <zammit.andrew@gmail.com>
  • Loading branch information
zamnuts committed Feb 22, 2021
1 parent 5dd773d commit a172ad2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/csi-external-resizer/build.make.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- build.make 2020-09-27 11:10:40.917111259 +0100
+++ build.make.new 2020-09-27 11:10:47.241142618 +0100
@@ -74,7 +74,7 @@
--- build.make 2021-02-21 19:14:05.314519040 -0700
+++ build.make.new 2021-02-21 19:13:52.714757257 -0700
@@ -79,7 +79,7 @@
$(CMDS:%=build-%): build-%: check-go-version-go
mkdir -p bin
echo '$(BUILD_PLATFORMS)' | tr ';' '\n' | while read -r os arch suffix; do \
- 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 \
+ 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 \
- if ! (set -x; CGO_ENABLED=0 GOOS="$$os" GOARCH="$$arch" go build $(GOFLAGS_VENDOR) -a -ldflags '$(FULL_LDFLAGS)' -o "./bin/$*$$suffix" ./cmd/$*); then \
+ if ! (set -x; CGO_ENABLED=0 GOOS="$$os" go build $(GOFLAGS_VENDOR) -a -ldflags '$(FULL_LDFLAGS)' -o "./bin/$*$$suffix" ./cmd/$*); then \
echo "Building $* for GOOS=$$os GOARCH=$$arch failed, see error(s) above."; \
exit 1; \
fi; \

0 comments on commit a172ad2

Please sign in to comment.