nix: Fix submodules#1953
Conversation
WalkthroughThe change updates the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
ah crud!
i'll need to revert the submodule improvements, and go for the backup fix |
depending on how the repo is fetched, the submodule directories may not exist, or may be empty dirs cp behaves differently if it exists, and -T is needed to force it to behave the same way
d5dea0a to
2bc000e
Compare
|
@NotExactlySiev ping |
|
Your solution works perfectly (thanks!) and could be merged in right now. However: those Also: I added |
that should really be set in but yeah, nix itself doesnt have a good way to balance many small processes vs a few fat ones |
|
|
Note that I'm vendoring and pinning dependencies for a reason. Trying to use system packages where things are pinned and vendored is a bad idea. You break it, you buy it. |
|
We're still mostly using the vendored dependencies. it's just that nix likes to download them to |
this PR switches the flakes from using submodules manually (which can also break due to NixOS/nix#13698 )
over to using submodules via flakes (which then also needs nix to be upgraded)
this is required, because fetching the project via a flake URI such as
nix build github:grumpycoders/pcsx-redux/1b0cbe5e4a535def2e3e3279551e6665cdc102aecompletely breaks the buildwhich also makes it impossible to add this project as an input on another flake