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
vagrant: 2.2.3 -> 2.2.5 #64302
vagrant: 2.2.3 -> 2.2.5 #64302
Conversation
FYI by using Vagrant's Gemfile + bundle + bundix, I'm getting this: gemset.nix.txt which seems weirdly... long? |
This pull request has been mentioned on Nix community. There might be relevant details there: |
In any case, we need some clear documentation/script to update vagrant once this is settled! 🙂 |
Well, I can explain it a bit later, a working version is at: manveru@c2b5d07 for now
is taken from the dependencies in the Gemfile and gemspec files in the vagrant repo. |
Thanks for posting this! 🙂 If I understand correctly you manually created a Thus... don't we keep our own Gemfile (or why did we remove it) in Then, I suppose there are some missing steps when using stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) nix-shell --pure -p bundler bundix git --run 'bundle lock && bundix'
Fetching https://github.com/hashicorp/vagrant-spec.git
There was an error accessing `/nix/store/glhmssxi9zpw6r84ws2zdyw2hfvpsnm2-ruby-2.5.5/lib/ruby/gems/2.5.0/cache/bundler/git`.
The underlying system error is Errno::EROFS: Read-only file system @ dir_s_mkdir -
/nix/store/glhmssxi9zpw6r84ws2zdyw2hfvpsnm2-ruby-2.5.5/lib/ruby/gems/2.5.0/cache/bundler Without using nix-shell, which I know I shouldn't, it works (with warnings though): stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) pwd
/home/stanislas/nixpkgs/pkgs/development/tools/vagrant
stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) ll
.rw-r--r-- 3,3k stanislas users 7 mai 17:25 -- 0004-Support-system-installed-plugins.patch
.rw-r--r-- 3,2k stanislas users 31 juil. 15:36 -- default.nix
.rw-r--r-- 749 stanislas users 31 juil. 15:44 -N Gemfile
.rw-r--r-- 12k stanislas users 4 juil. 15:32 -- gemset.nix
.rw-r--r-- 3,0k stanislas users 7 mai 17:25 -- gemset_libvirt.nix
lrwxrwxrwx 57 stanislas users 4 juil. 15:49 -- result -> /nix/store/iqah7ygpsvyghfsz7cflc4pcpzy9m532-vagrant-2.2.5
.rw-r--r-- 439 stanislas users 7 mai 17:25 -- unofficial-installation-nowarn.patch
.rw-r--r-- 475 stanislas users 7 mai 17:25 -- use-system-bundler-version.patch
.rw-r--r-- 168 stanislas users 7 mai 17:25 -- vagrant-libvirt.json.in
stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) bundle lock
Following files may not be writable, so sudo is needed:
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/bin
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/build_info
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/cache
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/doc
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/extensions
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/gems
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/nix
/nix/store/8hwd3zmw07ag6gar799kn5d5fxfh9qnw-ruby-2.6.3/lib/ruby/gems/2.6.0/specifications
Fetching https://github.com/hashicorp/vagrant-spec.git
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Writing lockfile to /home/stanislas/nixpkgs/pkgs/development/tools/vagrant/Gemfile.lock
stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) ll
.rw-r--r-- 3,3k stanislas users 7 mai 17:25 -- 0004-Support-system-installed-plugins.patch
.rw-r--r-- 3,2k stanislas users 31 juil. 15:36 -- default.nix
.rw-r--r-- 749 stanislas users 31 juil. 15:44 -N Gemfile
.rw-r--r-- 3,1k stanislas users 31 juil. 15:48 -N Gemfile.lock
.rw-r--r-- 12k stanislas users 4 juil. 15:32 -- gemset.nix
.rw-r--r-- 3,0k stanislas users 7 mai 17:25 -- gemset_libvirt.nix
lrwxrwxrwx 57 stanislas users 4 juil. 15:49 -- result -> /nix/store/iqah7ygpsvyghfsz7cflc4pcpzy9m532-vagrant-2.2.5
.rw-r--r-- 439 stanislas users 7 mai 17:25 -- unofficial-installation-nowarn.patch
.rw-r--r-- 475 stanislas users 7 mai 17:25 -- use-system-bundler-version.patch
.rw-r--r-- 168 stanislas users 7 mai 17:25 -- vagrant-libvirt.json.in
stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|…) bundix
19vxrclxc5l8n2agwvv291740s6gna2phg3lkybjb0ldkmpi3sj2 => winrm-2.3.2.gem
1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf => unf_ext-0.0.7.6.gem
1w9gw28ly3zyqydnm8phxchf4ymyjl2r7zf7c12z8kla10cpmhlc => rubyzip-1.2.3.gem
1m00pg19cm47n1qlcxgl91ajh2yq0fszvn1vy8fy0s1jkrp9fw4a => mime-types-data-3.2019.0331.gem
13l6pqbfrx3vv7cw26nq9p8rnyp9br31gaz85q32wx6hnzfcriwh => gssapi-1.3.0.gem
06mvxpjply8qh4j3fj9wh08kdzwkbnvsiysh0vrhlk5cwxzjmblh => ffi-1.11.1.gem
0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0 => domain_name-0.5.20190701.gem
1x07r23s7836cpp5z9yrlbpljcxpax14yw4fy4bnp6crhr6x24an => concurrent-ruby-1.1.5.gem
02vssr285m7kpsr47jdmzbar1h1d0mnkmyrpr1zg828isfmwii35 => bcrypt_pbkdf-1.0.1.gem
stanislas@nixpsla ~/n/p/d/t/vagrant> (vagrant/update/2.2.5|✚1…) ll
.rw-r--r-- 3,3k stanislas users 7 mai 17:25 -- 0004-Support-system-installed-plugins.patch
.rw-r--r-- 3,2k stanislas users 31 juil. 15:36 -- default.nix
.rw-r--r-- 749 stanislas users 31 juil. 15:44 -N Gemfile
.rw-r--r-- 3,1k stanislas users 31 juil. 15:48 -N Gemfile.lock
.rw-r--r-- 11k stanislas users 31 juil. 15:48 -M gemset.nix
.rw-r--r-- 3,0k stanislas users 7 mai 17:25 -- gemset_libvirt.nix
lrwxrwxrwx 57 stanislas users 4 juil. 15:49 -- result -> /nix/store/iqah7ygpsvyghfsz7cflc4pcpzy9m532-vagrant-2.2.5
.rw-r--r-- 439 stanislas users 7 mai 17:25 -- unofficial-installation-nowarn.patch
.rw-r--r-- 475 stanislas users 7 mai 17:25 -- use-system-bundler-version.patch
.rw-r--r-- 168 stanislas users 7 mai 17:25 -- vagrant-libvirt.json.in |
d5312a8
to
5521aae
Compare
@GrahamcOfBorg build vagrant |
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.
Built and tested locally. Regarding the Gemfile
discussion: I agree that we should either add a Gemfile
for vagrant and/or leave a comment on how to regenerate vagrant's gemset.nix
.
However I'd prefer to have an up-to-date version of vagrant on master and release-19.03 now, so I'll merge this for now, feel free to improve the documentation for this package in a separate PR and ping me :)
@angristan thanks! |
Ok, thanks! |
I think I will do a PR to add the Gemfile back. What would be a good place to add documentation (besides a comment in the Gemfile?) |
As this is only relevant for folks who want to modify the vagrant package it should be sufficient to enhance the comment :) |
After thinking a bit about it, adding an update script is better than revendoring |
Since Gemfile and Gemfile.lock were removed in 16a8e49, we need an easy to update the gemset.nix using the Vagrant source. This update.sh script updates the version and hash of vagrant and generates a new gemset.nix using a temporary copy of the vagrant source code. See discussion in NixOS#64302
https://github.com/hashicorp/vagrant/releases/tag/v2.2.6 Generated the `gemset.nix` by converting the `vagrant.gemspec` file to a different `Gemfile` as described in the previous update PR[1]. [1] NixOS#64302 (comment)
https://github.com/hashicorp/vagrant/releases/tag/v2.2.6 Generated the `gemset.nix` by converting the `vagrant.gemspec` file to a different `Gemfile` as described in the previous update PR[1]. [1] #64302 (comment) (cherry picked from commit 728f7a7)
https://github.com/hashicorp/vagrant/releases/tag/v2.2.6 Generated the `gemset.nix` by converting the `vagrant.gemspec` file to a different `Gemfile` as described in the previous update PR[1]. [1] NixOS#64302 (comment) (cherry picked from commit 728f7a7)
Motivation for this change
Fixes #64243.
FYI, it is written:
However doing this did work for me:
Now, I am interested to know how to update the gems without the Gemfile. I saw #47519 (comment) but it's doing weird stuff for me.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @aneeshusa