Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GOPATH Checkout Buildkite Plugin Build status

A Buildkite plugin for running Go code directly on your agent machines. It does this by setting the $GOPATH, and checking out your project into the correct directory structure.

See also the golang-build plugin.

Example

The following pipeline will ensure the project is checked out into the correct $GOPATH/src directory before running the go test command:

steps:
  - command: go test
    plugins:
      - gopath-checkout#v1.0.1:
          import: github.com/my-org/my-project

Configuration

import

The import path to use when the project is checked out. For example, if you develop in $GOPATH/src/github.com/my-org/my-project then the import option should be github.com/my-org/my-project.

Developing

docker-compose run --rm tests

Roadmap

  • Prepend to existing $GOPATHs instead of replacing

License

MIT (see LICENSE)

About

⛺️ Setup your GOPATH and checkout directory for running Go commands

Topics

Resources

License

Packages

No packages published

Languages