Skip to content

Instantly share code, notes, and snippets.

@FelicianoTech
Created November 14, 2016 21:52
Show Gist options
  • Save FelicianoTech/b132b303d53a6891f0404de1f08ebd83 to your computer and use it in GitHub Desktop.
Save FelicianoTech/b132b303d53a6891f0404de1f08ebd83 to your computer and use it in GitHub Desktop.
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
Copy link

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