Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make: allow running
git status
during release build
Go 1.18 sets the -buildvcs flag to true by default which will stamp VCS information into the binary, see https://go.dev/doc/go1.18#go-version for details. However, in the current `make release` target the release build is performed in a container and the `git status --porcelain` command executed by `go build` under the hood fails with: fatal: unsafe repository ('/cilium-cli' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /cilium-cli Fix this by calling the suggested command in the container to allow the Go toolchain executing git commands there. Signed-off-by: Tobias Klauser <[email protected]>
- Loading branch information