Skip to content

Build failure: vagrant #348938

Closed
Closed

Description

@andersk

Steps To Reproduce

Steps to reproduce the behavior:

  1. build vagrant

Build log

Running phase: installCheckPhase
Vagrant failed to initialize at a very early stage:
The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:
  vagrant plugin repair
If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:
  vagrant plugin expunge --reinstall
Or you may want to try updating the installed plugins to their latest
versions:
  vagrant plugin update
Error message given during initialization: can't activate rexml-3.3.6, already activated rexml-3.2.5

Additional context

Notify maintainers

@tylerjl

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.56, NixOS, 24.11 (Vicuna), 24.11.git.0846c6c8a7db`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - channels(anders): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: build failure
    on Oct 16, 2024
  2. andersk commented on Oct 17, 2024

    @andersk
    ContributorAuthor

    Workaround (if you don’t need libvirt support): vagrant.override { withLibvirt = false; } still works.

  3. johanneskastl commented on Nov 29, 2024

    @johanneskastl

    Any news on this? This is a showstopper for switching to 24.11 for me...

  4. johanneskastl commented on Nov 29, 2024

    @johanneskastl

    Workaround (if you don’t need libvirt support): vagrant.override { withLibvirt = false; } still works.

    Sorry for the newbie question, but how would I use this override in a home-manager file?

  5. lucc commented on Nov 29, 2024

    @lucc
    Contributor

    @johanneskastl because there is no option for vagrant you should be able to put the package into home.packages:

    home.packages = [
      (vagrant.override {withLibvirt=false;})
    ];

    Otherwise you could check the FAQ: https://nix-community.github.io/home-manager/index.xhtml#_how_do_i_change_the_package_used_by_a_module

  6. johanneskastl commented on Nov 29, 2024

    @johanneskastl

    Thanks, that was almost correct. This worked:

        home.packages = [ 
          (pkgs.vagrant.override {withLibvirt=false;})
        ];
    
  7. johanneskastl commented on Dec 1, 2024

    @johanneskastl

    Unfortunately, the workaround allows building the vagrant derivation. But installation of the vagrant-libvirt plugins fails...

  8. tylerjl commented on Dec 5, 2024

    @tylerjl
    Contributor

    Fixed build in #362117; some additional testing on Darwin as noted in the PR would be appreciated.

  9. bjornfor commented on Dec 6, 2024

    @bjornfor
    Contributor

    I was curious to see what caused vagrant to stop building. According to git bisect it is a487044 ("ruby: 3.3.4 -> 3.3.5 (#340137)").

  10. bjornfor commented on Dec 6, 2024

    @bjornfor
    Contributor

    Fixed by 3cb2fa6 (and backported to release-24.11 in ec4dd82). Thank you @tylerjl!

  11. johanneskastl commented on Dec 7, 2024

    @johanneskastl

    Fixed by 3cb2fa6 (and backported to release-24.11 in ec4dd82). Thank you @tylerjl!

    Thanks to everyone involved @bjornfor @tylerjl, very nice to see that fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions