Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release build & update Go to 1.18.1 #791

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

tklauser
Copy link
Member

See commits for details.

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]>
Signed-off-by: Tobias Klauser <[email protected]>
@tklauser tklauser requested a review from michi-covalent April 13, 2022 16:01
@tklauser tklauser requested review from a team as code owners April 13, 2022 16:01
@tklauser tklauser requested a review from nbusseneau April 13, 2022 16:01
@tklauser tklauser temporarily deployed to ci April 13, 2022 16:01 Inactive
@michi-covalent michi-covalent merged commit 66232ab into master Apr 13, 2022
@michi-covalent michi-covalent deleted the pr/tklauser/fix-release-build branch April 13, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants