Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Latest commit

 

History

History
38 lines (29 loc) · 1.49 KB

File metadata and controls

38 lines (29 loc) · 1.49 KB

Go buildpack


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:

  1. ImportPath from Godep configs
  2. .godir file
  3. Remote github repository URL
  4. GO_PROJECT_NAME environmental 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.