Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example of how to use Go versions newer than v1.6.2 on CircleCI.
machine:
environment:
GODIST: "go1.7.3.linux-amd64.tar.gz"
post:
- mkdir -p downloads
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
@devalecs

This comment has been minimized.

Copy link

@devalecs devalecs commented Nov 24, 2016

There is a typo in the script, the mkdir command on line #5 should be mkdir -p download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.