-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base-image: inherit the host environment when building #346
Conversation
With modules enabled in the repo and without this change, errors are thrown when building the base image - e.g. for GOCACHE or HOME not being defined. Inherit the host environment when calling `go build` for the entry point binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold
I assume Go takes the last value for GOOS etc?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, neolit123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
yes,
|
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
* Fix release 0.3 images Documentation * Fix release 0.3 images Documentation * Fix crictl versions * Fix GCP Image documentation * Fix GCP Image documentation & improve AWS image doc * Fix installation.adoc dead page link * Fix installation.adoc dead page link gcp * Remove old files * Fix Docs Checks Orphan Assets * Fix Doc * Fix Docs Checks - Empty lines * Fix ECR docs * Fix typo * Apply suggested changes * Fix merge * More fixes * Fix empty line * Remove empty lines * More fixes --------- Co-authored-by: Francisco Augusto <[email protected]>
With modules enabled in the repo and without this change,
errors seem to be thrown when building the base image - e.g. for
GOCACHE or HOME not being defined.
Inherit the host environment when calling
go build
for the entry point binary.
golang/go#29267
/kind bug
/priority important-longterm