-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Revert "lib/trivial: fix 'error: cannot decode virtual path '/nix/sto… #202370
Conversation
…re/virtual0000000000000000000000005-source''" This reverts commit b67ee6e. NixOS#202244 error: a string that refers to a store path cannot be appended to a path, at /etc/nixos/nix/nixos-unstable/lib/sources.nix:193:30 appears to happen when there's a nixpkgs git submodule > So one of the things that is different for a git submodule is that the .git folder isn't a folder, it's a textfile that contains (in my case) this: > $ cat nix/nixos-unstable/.git > gitdir: ../../.git/modules/nixpkgs
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.
My system builds again, thanks.
The use of |
yep can't use a path nixpkgs input in a flake without getting
it's common with niv i think i opted to revert it for now because NixOS/nix#6530 is a nix PR while some peoples working systems can't rebuild now |
@edolstra I wouldn't advocate for blocking such a change on the basis of my or anyone else's use, but when I started using nix this was (at least in my eyes and based on friends' recommendations) common enough that I opted to follow the idea. If this behaviour is unintentional, I think it still warrants a deprecation notice and a planned removal - e.g. by 23.05 - rather than just dropping it overnight because it wasn't meant to be supported in the first place. I don't follow nix development closely enough to have known that this is an intentional change before now, and I don't recall seeing any mention of this in release notes either - so to me, this comes out of nowhere and breaks my systems with no prior warning. |
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.
Yay, now it can unblock my updates of the unstable channel 🙂
And I agree with @maxeaubrey, maybe this could be based on state version or something?
Otherwise, if this change should be pushed for all of a sudden. It should at least be documented in the release notes that this is an intended change.
Well, it's a use case that has been working fine for many years. So there's certainly people that uses it. Which means that it should at least be deprecated in some form of graceful way. |
Successfully created backport PR #202375 for |
The code that broke was there specifically to support fetching the nixpkgs git revision from a submodule, so yes, it has certainly been a supported use case.
In this case, it seems |
Here is an alternative solution that could work with NixOS/nix#6530. It does however make a useless copy of the |
you forgot to link/paste the code |
Oops! Here's the link: talyz@1e659be |
…re/virtual0000000000000000000000005-source''"
This reverts commit b67ee6e.
#202244
error: a string that refers to a store path cannot be appended to a path, at /etc/nixos/nix/nixos-unstable/lib/sources.nix:193:30
appears to happen when there's a nixpkgs git submodule
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes