Skip to content

Commit

Permalink
Try cleaning up the /etc/profile path additions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Mulube committed Mar 2, 2016
1 parent 11d15d5 commit ff9a9b7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions wercker-box.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: golang
version: 1.6.3
version: 1.6.4
inherits: wercker/ubuntu12.04-webessentials@1.0.4
type : main
platform : ubuntu@12.04
Expand All @@ -21,19 +21,18 @@ script : |
sudo apt-get update
sudo apt-get install bzr
sudo apt-get install mercurial
wget https://storage.googleapis.com/golang/go${version}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${version}.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a /etc/profile
rm go${version}.linux-amd64.tar.gz
# Set GOPATH
export GOPATH="$HOME/go"
echo 'export GOPATH="$HOME/go"' | sudo tee -a /etc/profile
echo "export GOPATH=$HOME/go" | sudo tee -a /etc/profile
# Adds go bin directory to path so tools
# and buils are available on the commandline
export PATH="$PATH:$GOPATH/bin"
echo 'export PATH="$PATH:$GOPATH/bin"' | sudo tee -a /etc/profile
# Make actual go workspace dir structure
mkdir -p "$HOME/go/{src,pkg,bin}"
Expand All @@ -42,9 +41,11 @@ script : |
wget https://github.com/Masterminds/glide/releases/download/${glideversion}/glide-${glideversion}-linux-amd64.tar.gz
sudo tar -C /usr/local -xzf glide-${glideversion}-linux-amd64.tar.gz
sudo mv /usr/local/linux-amd64 /usr/local/glide
echo "export PATH=$PATH:/usr/local/glide" | sudo tee -a /etc/profile
rm glide-${glideversion}-linux-amd64.tar.gz
# add all bin dirs to path
echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:/usr/local/glide" | sudo tee -a /etc/profile
box-detect:
priority : 900
version :
Expand Down

0 comments on commit ff9a9b7

Please sign in to comment.