Repository navigation
vagrant: 2.4.1 -> 2.4.3 - #362117
vagrant: 2.4.1 -> 2.4.3#362117
Conversation
bjornfor
left a comment
There was a problem hiding this comment.
Perfect timing! I've spent over a day trying to upgrade this package. I kept getting conflicts and hash mismatches. (I did bundler lock && bundix in vagrant and vagrant-libvirt source trees, but hit various build issues after that.)
Can you describe in the commit message exactly what you did?
There was a problem hiding this comment.
I tested that this builds and runs on Darwin, so we can remove this.
There was a problem hiding this comment.
Thank you! I'll remove the broken stanza.
Sure thing; I'm going to remove Long term I (or somebody) needs to punch out a small script to help generate updates because it.. isn't straightforward. The tl;dr is
Unfortunately this seems like a very brittle process since both upstream projects don't ship their own |
I'm including the steps I took to update this package to help the next committer. Time permitting, this should probably be codified as a formal update script: 1. Clone the upstream hashicorp/vagrant repository 2. Check out the desired version tag 3. Run `bundle lock` within the repository to generate `Gemfile.lock` 4. Run `bundix` to generate a `gemset.nix` 5. Move `gemset.nix` to overwrite this package's `gemset.nix` 6. Remove the self-referential `vagrant` attribute of the gemset 7. Clone vagrant-libvirt/vagrant-libvirt and check out the desired tag (probably latest release tag) 8. (Maybe optional?) because `bundle lock` lacks the ability to exclude groups; comment out groups unrelated to a release like `development` and `test, otherwise dependency conflicts with vagrant's `gemset.nix` are likely. 9. Run `bundle lock` within the repository to generate `Gemfile.lock` 10. Run `bundix` to generate a `gemset.nix` 11. Move `gemset.nix` to overwrite this package's `gemset_libvirt.nix` 12. Edit the `vagrant-libvirt` gem attribute to change its source to rubygems and not a relative path Aside from these specific steps, the normal package update steps apply (update version, set hash to `lib.fakeHash`, get the updated hash to replace the old).
60fb047 to
dcc9178
Compare
|
Now I wonder whether it's a good idea to write an update script, or if we should just have the upgrade steps as a comment in .../vagrant/package.nix? |
|
An update script would be great, but we should merge this first to solve the build failure. |
|
Successfully created backport PR for |
Definitely! |
This has been marked broken on Darwin and Linux; after updating to latest stable and bumping dependencies in the vagrant-libvirt gemset (there were conflicting/outdated dependency conflicts after generating their Gemfile locks) I can vouch that it works on x86_64-linux at the very least (both building and managing a libvirt box - I tested w/RDP as well)
Resolves #354352 #348938
I have not built this on darwin, so I left the
brokenstanza in-place for that platform. If someone could checkout my branch and report success || failure on Darwin I'd appreciate it (then I'll removemeta.broken).Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.