Skip to content

Commit

Permalink
fix: building release-binaries fails
Browse files Browse the repository at this point in the history
When doing the v2.1.3 there was an error when building the release
binaries. Specifically the `release-binary` task was failing with the
following error:

```
error obtaining vcs status exit status 128
```

Signed-off-by: Richard Case <[email protected]>
  • Loading branch information
richardcase authored and k8s-infra-cherrypick-robot committed Jun 3, 2023
1 parent 7f7af3e commit d3e27b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ release-binary: $(RELEASE_DIR) versions.mk build-toolchain ## Release binary
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
-w /workspace \
$(TOOLCHAIN_IMAGE) \
git config --global --add safe.directory /workspace; \
go build -ldflags '$(LDFLAGS) -extldflags "-static"' \
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH)$(EXT) $(RELEASE_BINARY)

Expand Down

0 comments on commit d3e27b4

Please sign in to comment.