Edit pipelines, applications & intents.
Follow the instructions at spinnaker.io.
Fetch the code
$ go get github.com/spinnaker/spin
Note: If you are using two-factor authentication with ssh keys to authenticate with GitHub, you may need to run the following git command:
$ git config --global --add url."git@github.com:".insteadOf "https://github.com/"
for the go get
command to work properly.
Enter the code's directory
$ cd $GOPATH/src/github.com/spinnaker/spin
Fetch dependencies and build with with
$ go get -d -v -u
$ go build -v
from the root spin/
directory.
Clone the repository to a directory outside of your GOPATH:
$ git clone https://github.com/spinnaker/spin
Afterward, use go build
to build the program. This will automatically fetch dependencies.
$ go build
Upon first build, you may see output while the go
tool fetches dependencies.
To verify dependencies match checksums under go.sum, run go mod verify
.
To clean up any old, unused go.mod or go.sum lines, run go mod tidy
.
Run using
./spin <cmds> <flags>
Test using
go test -v ./...
from the root spin/
directory.