We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 028b457 + 7aa5693 commit e5a98f8Copy full SHA for e5a98f8
build/pause/Makefile
@@ -118,7 +118,13 @@ bin/${BIN.linux}-$(OS)-$(ARCH): $(SRCS)
118
$(TRIPLE)-strip $(foreach binary, $@, ${binary}${EXTENSION})"
119
120
bin/wincat-windows-${ARCH}: windows/wincat/wincat.go
121
- CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o $@ $^
+ mkdir -p bin
122
+ docker run --rm -u $$(id -u):$$(id -g) -v $$(pwd):/build \
123
+ --tmpfs /.cache \
124
+ $(KUBE_CROSS_IMAGE):$(KUBE_CROSS_VERSION) \
125
+ /bin/bash -c "\
126
+ cd /build && \
127
+ CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o $@ $^"
128
129
container: .container-${OS}-$(ARCH)
130
.container-linux-$(ARCH): bin/$(BIN)-$(OS)-$(ARCH)
0 commit comments