-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[staging-next] rustPlatform.fetchCargoTarball: deprecate #378288
[staging-next] rustPlatform.fetchCargoTarball: deprecate #378288
Conversation
28a1f77
to
e4cdc4a
Compare
@infinisil do you know why eval is not failing here? I know of at least one attribute, ja2-stracciatella, that produces a warning with this change on current staging-next, but CI is nevertheless happy. OfBorg used to fail if any packages produced an evaluation warning I think. (ja2-stracciatella will no longer be an example of a warning next time master is merged into staging-next btw.) |
Oh no, I was really counting on this to make sure I'd taken care of all the users in Nixpkgs. I guess I can run the old OfBorg eval checks locally if I have lots of RAM… |
If we could add an opt-in flag temporarily: And opt in at all currently known remaining usages of fetchCargoTarball |
I can run the checks locally, but it'll be at the weekend. |
Since people don't often use fetchCargoTarball by itself, maybe buildRustPackage's boolean flag should be mentioned in the warning. Or maybe just add another warning into buildRustPackage when the boolean flag is set to false. |
The more information we put in the warning, the less likely people are to read the full explanation in the release notes, but I suppose it's worth it for buildRustPackage since it's so common. |
Although then it would be weird not to mention how to transition if you are using fetchCargoTarball, so the warning message would get very long… |
I've put more information in the deprecation warning. Still running the eval checks. |
I've verified using the old OfBorg eval checks that there are no warnings on staging-next, so it's time! Since CI can't catch it, we'll probably see new PRs introducing uses of fetchCargoTarball that will warn for some time to come, sadly. Still happy to take feedback on wording. |
e4cdc4a
to
eda3147
Compare
(I did expand the warning to explain inline what to do when using buildRustPackage) |
What do you think the deprecation process will look like? Perhaps something like this:
|
@alyssais as far as I understand, using This throws a warning for some reason |
Correct. |
Using `buildRustPackage` without it is deprecated NixOS/nixpkgs#378288 (comment)
fix(whiskers): enable `useFetchCargoVendor` Using `buildRustPackage` without it is deprecated NixOS/nixpkgs#378288 (comment)
This needs to land at the same time as Cargo 1.84.0 to make sure nobody ends up making bad FODs. Draft for now because there's still at least one remaining user in Nixpkgs.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.