Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Build with Go 1.16.1, and remove the whitelist of supported versions #140

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Build with Go 1.16.1, and remove the whitelist of supported versions #140

merged 1 commit into from
Mar 11, 2021

Conversation

negz
Copy link
Member

@negz negz commented Mar 11, 2021

Closes #122

Per #122 (comment), most (all?) of our projects now use Go modules, which allow a module to declare the version of Go it targets.

It could be that the purpose of this variable is to gate the versions of Go that upbound/build as a library of Makefiles supports, rather than the versions of Go that code built with upbound/build supports. If this is the case, I'd argue that during the the two years I've been using this library we've yet to encounter a new version of Go that has required anything other than a bump to this whitelist and that we never test that the older versions of Go still work. I suspect it would be more productive to pay the price of a newer version of Go breaking the library if and when that becomes an issue than it currently is to bump the var every time a new version of Go is released.

Edit: I've now tested this by:

  • Confirming I can build crossplane/crossplane with this PR, and Go 1.16.1.
  • Confirming I can make img.build && docker run <crosscontainer> go version for the Cross container.

@negz negz requested review from bassam and jbw976 March 11, 2021 07:30
#122 (comment)

Per the above comment thread, most (all?) of our projects now use Go modules,
which allow a module to declare the version of Go it targets.

It could be that the purpose of this variable is to gate the versions of Go that
upbound/build as a library of Makefiles supports, rather than the versions of Go
that code built with upbound/build supports. If this is the case, I'd argue that
during the the two years I've been using this library we've yet to encounter a
new version of Go that has required anything other than a bump to this whitelist
and that we never test that the older versions of Go still work. I suspect it
would be more productive to pay the price of a newer version of Go breaking the
library if and when that becomes an issue than it currently is to bump the var
every time a new version of Go is released.

Signed-off-by: Nic Cope <[email protected]>
Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your reasoning is sound here @negz in that the enforcement of this check has caused more headaches than it has saved us from.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants