Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

david-shepard
Copy link

@david-shepard david-shepard commented Mar 29, 2018

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)

Copy link

@cmluciano cmluciano left a 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOT?

Copy link
Author

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}

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"

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?

@david-shepard david-shepard changed the title fix ancient Vagrantfile fix ancient Vagrantfile & fix imports Mar 30, 2018
@cmluciano
Copy link

Ok Vagrant works fine and can build but these imports seem to be breaking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants