-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
Changes to the git package trigger to many rebuilds #205804
Comments
Atemu
added a commit
to Atemu/nixpkgs
that referenced
this issue
Dec 12, 2022
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched because every derivation that somehow transiently depends on a rust package will change. See NixOS#205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes NixOS#205804
13 tasks
Atemu
added a commit
to Atemu/nixpkgs
that referenced
this issue
Dec 13, 2022
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched because every derivation that somehow transiently depends on a rust package will change. See NixOS#205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes NixOS#205804
Atemu
added a commit
to Atemu/nixpkgs
that referenced
this issue
Dec 14, 2022
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched because every derivation that somehow transiently depends on a rust package will change. See NixOS#205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes NixOS#205804
Atemu
added a commit
to Atemu/nixpkgs
that referenced
this issue
Dec 15, 2022
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched because every derivation that somehow transiently depends on a rust package will change. See NixOS#205682 for instance. AFAICT git is unused. Only the fetcher needs git which it has already. Fixes NixOS#205804
Should become a lot better with #207804 |
Great to have that in. We'll see the effect on the next git bump I hope. |
SuperSandro2000
changed the title
git causes a ton of rebuilds
Changes to the git package trigger to many rebuilds
Jan 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
See i.e. #205682; 5000+ on Linux and Darwin.
Why?
@SuperSandro2000 pointed out one reason which is that nearly all rust packages depend on git via
buildRustPackage
:nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Lines 118 to 126 in d2578f1
The text was updated successfully, but these errors were encountered: