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

go cmd unavailable for go-pre-compile or go-post-compile #505

Open
zkrzyzanowski opened this issue Dec 22, 2022 · 1 comment
Open

go cmd unavailable for go-pre-compile or go-post-compile #505

zkrzyzanowski opened this issue Dec 22, 2022 · 1 comment

Comments

@zkrzyzanowski
Copy link

Hi,
I've added a bin/go-post-compile file as written in the docs here

When I try and run a deploy, i get the following error

/tmp/codon/tmp/buildpacks/c92a29ce0eaa662656e0e35917663a37ea9acb68/bin/compile: line 84: /tmp/build_0859c912/bin/#!/bin/bash
set -e
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/[email protected]: No such file or directory

No matter what go commands I run, I still get the same error, i.e running go version, attempting to install another go pkg

Based on this comment in a separate issue, it appears that the build pack doesn't set any run time environment variables and that the go toolchain is not available to the run time environment

https://devcenter.heroku.com/articles/go-support#runtime-behavior

How would you recommend we install go packages needed at release time?

@zkrzyzanowski
Copy link
Author

I tried setting GO_INSTALL_TOOLS_IN_IMAGE and GO_SETUP_GOPATH_IN_IMAGE to true according to this article, but that didn't work either unfortunately.

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
@zkrzyzanowski and others