Skip to content

Commit

Permalink
Work around upstream bug in Vagrant 1.8.7 (#27230)
Browse files Browse the repository at this point in the history
Upstream issue is documented here, and the workaround is tested and working on
OS X Sierra. I do not have an older machine to test on, but curl's invocation
has been relatively stable over the years.

hashicorp/vagrant#7969

While I was working on this, Vagrant 1.9.0 was released. I'm not updating this
cask to 1.9.0 at this time to give it a few days for any potential issues to
shake out.
  • Loading branch information
SpikesDivZero authored and fanquake committed Nov 29, 2016
1 parent 9d3ab08 commit 8f731ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Casks/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@
# hashicorp.com/vagrant was verified as official when first introduced to the cask
url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}.dmg"
appcast 'https://github.com/mitchellh/vagrant/releases.atom',
checkpoint: '5b1451672c9d60925f947f676d56250f5d5572462abcba4f8ef8fc043a4cb7fc'
checkpoint: '8d16ac5df154d7b39604d9f6505b17394cdc45205c6a75a1bac8d9ff39cc2f06'
name 'Vagrant'
homepage 'https://www.vagrantup.com/'

pkg 'Vagrant.pkg'

# Vagrant 1.8.7 ships with a broken embedded curl. Removing it causes vagrant
# to fall back to the system-installed curl, which works.
# https://github.com/mitchellh/vagrant/issues/7969
postflight do
system_command '/bin/rm',
args: ['/opt/vagrant/embedded/bin/curl'],
sudo: true
end

uninstall script: { executable: 'uninstall.tool', input: %w[Yes] },
pkgutil: 'com.vagrant.vagrant'

Expand Down

0 comments on commit 8f731ad

Please sign in to comment.