Skip to content
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

boost::wrapexcept<boost::io::too_few_args> when path-info a nixosSystem #10429

Closed
Aleksanaa opened this issue Apr 8, 2024 · 2 comments
Closed
Labels

Comments

@Aleksanaa
Copy link
Member

Aleksanaa commented Apr 8, 2024

Describe the bug

When I updated my system, I found that the libpeas2 build failed, preventing me from continuing update. So I wanted to find out which package depends on libpeas2:

nix why-depends .#nixosConfigurations.Aleksana-Laptop /nix/store/si5kqczvmy8fns53raqrzpzgyd86i8vz-libpeas-2.0.1.drv

This may not be correct though, but nix failed with a surprising error:

warning: Git tree '/etc/nixos' is dirty
terminate called after throwing an instance of 'boost::wrapexcept<boost::io::too_few_args>'
  what():  boost::too_few_args: format-string referred to more arguments than were passed
Aborted (core dumped)

Just now I realized nix path-info .#nixosConfigurations.Aleksana-Laptop will also fail with the same error.

Nix 2.18 behaves differently, though...

=> nix run pkgs#nixVersions.nix_2_18 -- path-info .#nixosConfigurations.Aleksana-Laptop
warning: Git tree '/etc/nixos' is dirty
error: 'nixosConfigurations.Aleksana-Laptop.type' is not a string but

(But what?)

Steps To Reproduce

  1. have a flake with a nixpkgs.lib.nixosSystem definition in nixosConfigurations
  2. run nix path-info .#nixosConfigurations.<system-name>
  3. see the error occurs

Expected behavior

Either print the store path or throw an intutive error.

nix-env --version output

nix-env (Nix) 2.21.0

Priorities

Add 👍 to issues you find important.

@Aleksanaa Aleksanaa added the bug label Apr 8, 2024
@YorikSar
Copy link
Contributor

I ran into the same issue. It has been fixed with #10293 that released in 2.21.1. Try either upgrading or downgrading your Nix.

@Aleksanaa
Copy link
Member Author

Can confirm it works.

=> nix path-info .#nixosConfigurations.Aleksana-Laptop
warning: Git tree '/etc/nixos' is dirty
error: 'nixosConfigurations.Aleksana-Laptop.type' is not a string but a set

I should upgrade my system. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants