-
Notifications
You must be signed in to change notification settings - Fork 117
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
The Go version specified in a go.mod
file should influence the installed version
#344
Comments
@ryanmoran Context on why we rollback this functionality some months ago #254 |
Assigning this to @robdimsdale |
Ok, so reading #253 I think there were two separate things going on here. Firstly, it looks like the original poster had an invalid
If the Secondly, it looks like the next poster had a legitimate issue - that the go version in There are two more use cases to handle:
Luckily I think #254 actually handles most of these cases already. I think the use-case we're missing - and the one @ryanmoran is asking for - is that if Laid out more explicitly: Given a buildpack with Go 1.18 and Go 1.19, and where Go 1.18 is the default, and assuming higher-priority selection criteria (e.g.
Things would get a bit more complicated if the buildpack also had go 1.20, but that isn't a problem we need to solve because Go's support policy is only to support two versions at a time - so when 1.20 was released (and added to the buildpack), 1.18 would be out of support and hence can be removed from the buildpack. cc @ForestEckhardt - does this sound right to you? If you agree with the logic above, any objections to implementing the requested feature? |
I think that all sounds fine to me. |
I think we can tie this in with #374 and both detect on Especially since go |
To me it seems like #374 will take some time to be implemented given the uncertainty around the usage of the other dependency management systems. Regarding #253 that caused the revert: Wouldn't it be an option to ignore the
Now that 1.21 is the default this allows for another scenario: unless the user explicitly sets |
What version of the buildpack you are using?
1.10.5
If you were attempting to accomplish a task, what was it you were attempting to do?
I was attempting to use the version of Go that my application specifies.
The
go.mod
file in my app specifies 1.19, but it appears that the buildpack still chooses to install 1.18 since that is the default version specified in the buildpack.What did you expect to happen?
I expected to see 1.19 installed since it is available in the buildpack and my app wants that version.
What was the actual behavior?
The buildpack ignores my
go.mod
file and installs 1.18.The text was updated successfully, but these errors were encountered: