-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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-npm-deps: download dev deps for git deps with install scripts #206476
prefetch-npm-deps: download dev deps for git deps with install scripts #206476
Conversation
I wonder if I should combine this and #206477... hm. |
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.
I made a couple of nit comments, but overall the changes look good and function correctly in my testing
Edit: Also, the commit has installl
with 3 l
's when it should just be install
b25e2e6
to
f6000ab
Compare
Pushed the fixes as separate commits so you can more easily review them. |
2678aa9
to
99efa90
Compare
Okay, we should be good to go with this set of changes. Apologies for the delay as always. @lilyinstarlight Please take a look, especially at the commit messages. Thanks. |
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.
Okay so this looks good to me, but it seems to have broken the mongosh
FOD
I haven't dived into why yet but it may just be that it needs to be updated because it wasn't generating right to begin with (and I guess it maybe worked by chance since it's built from a workspaced repo and doesn't need all locked deps idk). Regardless I'll investigate hopefully tomorrow so that this can get merged
I manually checked all other FODs and nixpkgs-review came in with no new regressions over master
Edit: The mongosh FOD hash changed becuase it wasn't downloading dev dependencies from https://github.com/mongodb-js/saslprep/tree/v1.0.4 (a transitive dependency) and so since including git dep lockfiles is the purpose of this PR, I will say that is Working As Intended and update the hash
This splits prefetch-npm-deps into multiple files, as well as making a few small changes along the way, such as going from a `HashMap` to a `Vec` as the container for packages, to deduplicate them more efficently.
Git dependencies with install scripts are built isolated from the main package, so their development dependencies are required. To take advantage of this, NixOS#206477 is needed.
99efa90
to
faa3de1
Compare
This FOD hash changed becuase it the fetcher was not downloading dev dependencies from https://github.com/mongodb-js/saslprep/tree/v1.0.4 (a transitive dependency) and so since including git dep lockfiles is the purpose of these changes this change is intended and the hash should be updated. Generally a package was unable to build without these so I did not expect this to be a breaking change (since there would be no existing FODs), but mongosh seems to have been an exception. I think just changing the hash here is more appropriate for this exception rather than working in machinery for supporting old and new FODs (since it's rather unlikely these prefetch-npm-deps changes will break downstream code as it should not have worked in the first place if it needed this).
I've done one push to rebase and another push to update the mongosh FOD hash (see commit message for why) I think this should be good now, but I'll do more tests and solicit another review so I'm not self-reviewing |
@ofborg eval |
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.
This is awesome. :)
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.
I did one final pass and everything looks good, with no regressions against master (4 failing builds are also all failing in Hydra)
Merging! 🎉 🚀
Result of nixpkgs-review pr 206476
run on x86_64-linux 1
4 packages failed to build:
- audiobookshelf (hydra failure)
- deltachat-desktop (hydra failure)
- faustStk (hydra failure)
- magnetophonDSP.ConstantDetuneChorus (hydra failure)
69 packages built:
- ansible-language-server
- authelia
- bitwarden
- cdxgen
- element-desktop
- element-desktop-wayland
- emscripten
- evcc
- faust (faust2)
- faust2alqt
- faust2alsa
- faust2csound
- faust2firefox
- faust2jack
- faust2jackrust
- faust2jaqt
- faust2ladspa
- faust2lv2
- faustPhysicalModeling
- faustlive
- guitarix
- hred
- iosevka
- iosevka-comfy.comfy
- iosevka-comfy.comfy-duo
- iosevka-comfy.comfy-fixed
- iosevka-comfy.comfy-motion
- iosevka-comfy.comfy-motion-duo
- iosevka-comfy.comfy-motion-fixed
- iosevka-comfy.comfy-wide
- iosevka-comfy.comfy-wide-duo
- iosevka-comfy.comfy-wide-fixed
- kapitonov-plugins-pack
- kaufkauflist
- lv_img_conv
- magnetophonDSP.CharacterCompressor
- magnetophonDSP.CompBus
- magnetophonDSP.LazyLimiter
- magnetophonDSP.MBdistortion
- magnetophonDSP.RhythmDelay
- magnetophonDSP.VoiceOfFaust
- magnetophonDSP.faustCompressors
- magnetophonDSP.pluginUtils
- magnetophonDSP.shelfMultiBand
- matrix-appservice-irc
- mongosh
- mooSpace
- mpvScripts.webtorrent-mpv-hook
- open-music-kontrollers.mephisto
- open-stage-control
- paperless-ngx
- photoprism
- pnpm-lock-export
- prefetch-npm-deps
- schildichat-desktop
- schildichat-desktop-wayland
- sharing
- sunshine
- tambura
- terminal-stocks
- torq
- twspace-crawler
- uptime-kuma
- vieb
- vsce
- webcord
- zigbee2mqtt
- zinc
- zrythm
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