Vagrant: Difference between revisions

imported>Samueldr
m Adds a (slightly wrong) documentation to make use of NFS mounts and vagrant.
imported>Mic92
document vagrant quirk
Line 27: Line 27:


See [[Vagrant_Box#NixOS_Plugin|the NixOS vagrant box page]], which as information about the <code>vagrant-nixos-plugin</code> project.
See [[Vagrant_Box#NixOS_Plugin|the NixOS vagrant box page]], which as information about the <code>vagrant-nixos-plugin</code> project.
== Troubleshooting:  conflicting dependencies bundler when installing vagrant plugins==
As of 18.03 vagrant plugins are broken:
<syntaxhighlight lang=console>
$  vagrant plugin update
Updating installed plugins...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
conflicting dependencies bundler (= 1.14.6) and bundler (= 1.16.1)
  Activated bundler-1.16.1
  which does not match conflicting dependency (= 1.14.6)
  Conflicting dependency chains:
    bundler (= 1.16.1), 1.16.1 activated
  versus:
    bundler (= 1.14.6)
  Gems matching bundler (= 1.14.6):
    bundler-1.14.6
</syntaxhighlight>
using the following nix expression fixes the problems:
<syntaxhighlight lang=nix>
(import <nixpkgs> {
    overlays = [
      (self: super: {
        bundler = super.bundler.overrideAttrs (old: {
          name = "bundler-1.16.1";
          src = super.fetchurl {
            url = "https://rubygems.org/gems/bundler-1.16.1.gem";
            sha256 = "1s2nq4qnffxg3kwrk7cnwxcvfihlhxm9absl2l6d3qckf3sy1f22";
          };
        });
      })
    ];
  }).vagrant
</syntaxhighlight>
More information in this [https://github.com/NixOS/nixpkgs/issues/36880 issue]