Skip to content

Commit

Permalink
Update golang to 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
iver committed Apr 5, 2016
1 parent c9bdff9 commit 8c20f19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box_url = "https://github.com/ivan-iver/vagrant_golang/releases/download/v0.1/golang.box"
# config.vm.box_url = "/Users/Iver/VirtualBox VMs/ubuntu-14.04.box"
config.vm.box_url = "https://github.com/ivan-iver/vagrant_golang/releases/download/v0.2/golang.box"
config.vm.box = "golangmx"
config.vm.hostname = "gophers"
config.vm.network "private_network", ip: "10.2.2.205"
config.vm.network :forwarded_port, guest: 22, host: 1234
config.vm.provision :shell do |shell|
shell.path = "bin/setup.sh"
shell.privileged = true
Expand Down
9 changes: 8 additions & 1 deletion bin/golang.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export GOPACK=go1.5.1.linux-amd64.tar.gz
export GOPACK=go1.6.linux-amd64.tar.gz
mkdir -p /home/vagrant/golang
wget -nv --progress=dot:giga -O /home/vagrant/golang/${GOPACK} https://storage.googleapis.com/golang/${GOPACK}
tar zxf /home/vagrant/golang/${GOPACK} -C /usr/local/
Expand All @@ -14,3 +14,10 @@ source ~/.bash_profile
/usr/local/go/bin/go get -u -v sourcegraph.com/sqs/goreturns
/usr/local/go/bin/go get -u -v golang.org/x/tools/cmd/gorename
/usr/local/go/bin/go get -u -v github.com/derekparker/delve/cmd/dlv

mkdir -p /usr/local/go
chown -R vagrant:vagrant /usr/local/go
mkdir -p /home/vagrant/go
mkdir -p /home/vagrant/go/pkg
mkdir -p /home/vagrant/go/bin
mkdir -p /home/vagrant/go/src
4 changes: 1 addition & 3 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile
apt-get update
apt-get upgrade -y
apt-get install git mercurial mercurial-git -y
apt-get install git mercurial mercurial-git postgresql postgresql-contrib -y

mkdir -p /usr/local/go
chown -R vagrant:vagrant /usr/local/go

0 comments on commit 8c20f19

Please sign in to comment.