This buildpack is based on the Go Heroku buildpack
and will install Go if a file with the .go extension
is found.
If a Godep dir is found, this buildpack will download and install godep
into your $PATH and will parse the GoVersion and ImportPath attributes
when setting things up.
This buildpack will attempt to identify your project's import path for you using the following priority:
ImportPathfrom Godep configs.godirfile- Remote github repository URL
GO_PROJECT_NAMEenvironmental variable
After identifying the import path, the buildpack will symlink your project sources
into the appropriate path under the $GOPATH/src dir. You can also configure
the working_dir to an appropriate path on your project's devstep.yml:
# The directory where project sources should be mounted inside the container.
working_dir: '/home/devstep/gocode/src/github.com/fgrehm/devstep-cli'If godep is configured, the buildpack will attempt a godep go install for you,
otherwise it will download project's dependencies with go get so you can
start hacking right away.
This buildpack will also fix $GOPATH/src ownership so that you can safely
mount a local checkout of a project dependency into the container without
running into permission issues.
To install a specific Go version, please use the GOVERSION environmental
variable.