Skip to content

Commit

Permalink
vagrant: Indent heredoc script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Mar 30, 2022
1 parent 413fb1d commit ac44de5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ Vagrant.configure("2") do |config|

config.vm.synced_folder ".", "/home/vagrant/go/src/github.com/mistifyio/go-zfs", create: true

config.vm.provision "shell", inline: <<EOF
set -euxo pipefail
config.vm.provision "shell", inline: <<-EOF
set -euxo pipefail
apt-get update -y
apt-get install -y --no-install-recommends gcc libc-dev zfsutils-linux
apt-get update -y
apt-get install -y --no-install-recommends gcc libc-dev zfsutils-linux
cd /tmp
curl -fLO --retry-max-time 30 --retry 10 https://go.dev/dl/go#{GOVERSION}.linux-amd64.tar.gz
tar -C /usr/local -zxf go#{GOVERSION}.linux-amd64.tar.gz
ln -nsf /usr/local/go/bin/go /usr/local/bin/go
rm -rf go*.tar.gz
cd /tmp
curl -fLO --retry-max-time 30 --retry 10 https://go.dev/dl/go#{GOVERSION}.linux-amd64.tar.gz
tar -C /usr/local -zxf go#{GOVERSION}.linux-amd64.tar.gz
ln -nsf /usr/local/go/bin/go /usr/local/bin/go
rm -rf go*.tar.gz
chown -R vagrant:vagrant /home/vagrant/go
cd /home/vagrant/go/src/github.com/mistifyio/go-zfs
go test -c
sudo ./go-zfs.test -test.v
CGO_ENABLED=0 go test -c
sudo ./go-zfs.test -test.v
EOF
chown -R vagrant:vagrant /home/vagrant/go
cd /home/vagrant/go/src/github.com/mistifyio/go-zfs
go test -c
sudo ./go-zfs.test -test.v
CGO_ENABLED=0 go test -c
sudo ./go-zfs.test -test.v
EOF
end

0 comments on commit ac44de5

Please sign in to comment.