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

Build minor changes #242

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Build minor changes #242

merged 2 commits into from
Jun 26, 2024

Conversation

mmolnar
Copy link
Contributor

@mmolnar mmolnar commented Jun 26, 2024

Newer versions of golang automatically try to include VCS information into the binary, this is their default behaviour.

Some build environments do not directly include .git repository into the VCS root and this might break the build process because golang tries to pull that information and fails, with the whole build process.

This change will allow the build environment to pass any flags it needs to the go binary in GOFLAGS argument.

To fix the above-mentioned issue, the environment will need to pass:
GOFLAGS='-buildvcs=false'
As build argument to docker.

@mmolnar mmolnar self-assigned this Jun 26, 2024
@mmolnar mmolnar requested a review from cregev June 26, 2024 09:27
@mmolnar mmolnar merged commit 8d52d07 into master Jun 26, 2024
5 checks passed
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.

2 participants