-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
prefetch-yarn-deps: Fix handling of scoped packages #257337
Conversation
@ofborg build gitmoji-cli marp |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2716 |
@lilyinstarlight maybe this is worth your attention before 23.11 branch-off. |
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.
The diff itself looks fine to me and does not appear to be a breaking change, so if ofborg builds pass and @yu-re-ka has no objections, I think this looks fine to merge
Thank you!
Ofborg failed because fetcher should probably set I'll open a separate PR to fix that since it is orthogonal to this PR |
I've opened #269061 to fix the fetcher failures |
f07f3a9
to
d83efe6
Compare
... and simplify `prefetchYarnDeps`
d83efe6
to
29cf6a0
Compare
Successfully created backport PR for |
Description of changes
I ran into an issue with a lockfile entry of the form
"@org/somepack@file:vendor/orgpacks/somepack/assets"
.fetch-yarn-deps
would crash, because it would not detect@file:...
and just blindly accesspkg.resolved
, which was not present.Things done
Diagnosed and fixed the bug, added a test to avoid regressions in the future.
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/
)