mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
Append pwd to GOPATH when compiling the kernel
The Makefile changes create a standalone Go workspace routed at pwd
This commit is contained in:
8
Vagrantfile
vendored
8
Vagrantfile
vendored
@@ -13,15 +13,19 @@ Vagrant.configure("2") do |config|
|
||||
|
||||
config.vm.box = "minimal/xenial64"
|
||||
|
||||
config.vm.synced_folder "./", "/home/vagrant/workspace/src/github.com/achilleasa/gopher-os"
|
||||
config.vm.synced_folder "./", "/home/vagrant/workspace"
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
apt-get update
|
||||
apt-get install -y nasm make xorriso
|
||||
[ ! -d "/usr/local/go" ] && wget -qO- https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar xz -C /usr/local
|
||||
mkdir -p /home/vagrant/go/src
|
||||
mkdir -p /home/vagrant/go/bin
|
||||
mkdir -p /home/vagrant/go/pkg
|
||||
chown -R vagrant:vagrant /home/vagrant/go
|
||||
echo "export GOROOT=/usr/local/go" > /etc/profile.d/go.sh
|
||||
echo "export GOBIN=/usr/local/go/bin" >> /etc/profile.d/go.sh
|
||||
echo "export GOPATH=/home/vagrant/workspace" >> /etc/profile.d/go.sh
|
||||
echo "export GOPATH=/home/vagrant/go" >> /etc/profile.d/go.sh
|
||||
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile.d/go.sh
|
||||
SHELL
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user