-
Notifications
You must be signed in to change notification settings - Fork 511
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
Defaults to v1.11.x version, despite "go 1.12" in go.mod file #301
Comments
Our support for go modules predates the go tooling adding the ATM, you will need to add a line like the following to get go1.12:
|
We are working to get support for the go version directive out soon |
A discussion on go-nuts started by @sowjumn indicates that the (cc @ianlancetaylor to validate my interpretation of his post) So, given that, I'm not convinced that using the Example: go1.13.1 is out and is the current default version we're using and the buildpack is used to compile code with a
The later seems safer to me. The former is the intended use case, at least as I understand what was written. |
Yes: the "go" directive in go.mod indicates the language version to use when compiling code. There is a lot more detail about how this is intended to work at golang/go#28221. We will support all previous language versions. It's not as hard as you suggest. C and C++ compilers do this routinely, via command line options like GCC's |
So the |
I see. I'd still posit that having The right solution would then be to run any Go >= 1.12 w. |
I've filed #378 for discussing this further. |
Ran into this today, so it's still happening. I used the GOVERSION env variable set to 1.14.2 to get my app running. Maybe the Heroku docs can make more of deal about setting GOVERSION in the env? |
I also got this issue I found it has been closed, can someone tell me how to solve this? |
@tomandersen I did n’t read your last comment carefully before I sent the comment, anyway, thank you ❤️ |
refs: - https://devcenter.heroku.com/articles/heroku-button - https://devcenter.heroku.com/articles/app-json-schema - https://devcenter.heroku.com/articles/procfile#procfile-naming-and-location - https://medium.com/@timanovsky/heroku-buildpack-to-support-deployment-from-subdirectory-e743c2c838dd - heroku/heroku-buildpack-go#301 (comment)
When building, I get this message:
Despite
go.mod
having the linego 1.12
in it.Having to specify the same thing twice is a little weird to me.
The text was updated successfully, but these errors were encountered: