You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use variants with leeway and specify and environment variable and have a package which also specifies the same environment variable, the variant's setting will be preferred.
I believe this to be a bug because a package is more specific than a variant (although they're not directly related) and in our case in https://github.com/gitpod-io/gitpod it let to unexpected behavior with a global setting for GOARCH and our inability to override it inside a package building our CLI for different platforms.
Building the above results in arm64 darwin instead of the actual amd64 darwin.
Example repository
No response
Anything else?
It may not be clear-cut what of the two should actually have preference over the other and if it's the case there's no common agreement, I can also see a possibility for a leeway package to specify its own default variant or other opt-out of global settings.
The text was updated successfully, but these errors were encountered:
Bug description
When you use variants with leeway and specify and environment variable and have a package which also specifies the same environment variable, the variant's setting will be preferred.
I believe this to be a bug because a package is more specific than a variant (although they're not directly related) and in our case in https://github.com/gitpod-io/gitpod it let to unexpected behavior with a global setting for
GOARCH
and our inability to override it inside a package building our CLI for different platforms.Steps to reproduce
WORKSPACE.yaml:
BUILD.yaml:
Expected behavior
Building the above results in
arm64 darwin
instead of the actualamd64 darwin
.Example repository
No response
Anything else?
It may not be clear-cut what of the two should actually have preference over the other and if it's the case there's no common agreement, I can also see a possibility for a leeway package to specify its own default variant or other opt-out of global settings.
The text was updated successfully, but these errors were encountered: