Skip to content
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

Way to set GO111MODULE for 1.16? #455

Open
joesiewert opened this issue Mar 5, 2021 · 0 comments
Open

Way to set GO111MODULE for 1.16? #455

joesiewert opened this issue Mar 5, 2021 · 0 comments

Comments

@joesiewert
Copy link

Our app is deploying successfully on 1.15, but gives the following error when deploying on 1.16. I'm pretty sure we need GO111MODULE=auto set, but it doesn't look like the buildpack looks for that right now? This app has not been migrated to modules yet and is currently using dep instead.

https://blog.golang.org/go116-module-changes

-----> New Go Version, clearing old cache
-----> Installing go1.16
-----> Fetching go1.16.linux-amd64.tar.gz... done
-----> Running: go install -v -tags heroku ./src/cmd/... 
go: cannot find main module, but found Gopkg.lock in /tmp/tmp.VT0EYkxNgQ/.go/src/github.com/my-org/my-repo
	to create a module there, run:
	go mod init
 !     Push rejected, failed to compile Go app.
 !     Push failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@joesiewert and others