-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix ancient Vagrantfile & fix imports #18
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few things, may need to be sure PATH is set prior to calling Go things. Currently it is not working for me.
sudo mv /tmp/gopath.sh /etc/profile.d/gopath.sh | ||
sudo chmod 0755 /etc/profile.d/gopath.sh | ||
export PATH="#{GOPATH}/bin:\$PATH" | ||
EOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heredoc for adding that text to gopath.sh
Vagrantfile
Outdated
go build | ||
go test ./... | ||
go install | ||
|
||
# Make sure the gopath is usable by vagrant | ||
sudo chown -R -f vagrant:vagrant $SRCROOT | ||
sudo chown -R -f vagrant:vagrant #{GOPATH} | ||
sudo chown -R -f vagrant:vagrant #{GOPATH} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may need to be done sooner since we try to use things within the GOPATH on prior lines
|
||
echo "Ready for development. Begin with cd $GOPATH/#{PACKAGE_PATH}" | ||
|
||
SCRIPT | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.box = "chef/ubuntu-12.04" | ||
config.vm.box = "ubuntu/trusty64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use generic/ubuntu1604 instead since it supports more providers?
Ok Vagrant works fine and can build but these imports seem to be breaking |
A bunch of fixes to get the Vagrantfile working and fix the imports so it works with the latest version of packer (1.2.2)