-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
rustc: 1.67.1 -> 1.68.1 #220373
rustc: 1.67.1 -> 1.68.1 #220373
Conversation
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.
Some hashes would probably need to be updated, see #217084
Cargo will introduce a change that will break our FODs for packages that use Git dependencies.
Making a draft until I figure out all these FODs. |
There was a treewide hash change like this and @danieldk had a script, maybe this will help speeding up the process We can also merge #217084 before this and convert all the hashes to |
If we can somehow extract the Cargo.lock files from each package, we can determine if it needs updating based on if it has any git dependencies |
Steal my logic from #217084 for that, it should work for 99% of packages. |
I will not have time to perform the treewide before maybe this weekend or more days, so anyone who really want to have this change can go ahead. I'm also in favor of waiting a proper resolution for #217084 (e.g. a merge). |
Could we enable fresh stabilized sparse-registry for |
Do you see this in this PR? |
No? I mean: diff --git a/pkgs/build-support/rust/fetch-cargo-tarball/default.nix b/pkgs/build-support/rust/fetch-cargo-tarball/default.nix
index 36ab9316974..6c4f8e3053a 100644
--- a/pkgs/build-support/rust/fetch-cargo-tarball/default.nix
+++ b/pkgs/build-support/rust/fetch-cargo-tarball/default.nix
@@ -62,8 +62,13 @@ in stdenv.mkDerivation ({
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
CARGO_CONFIG=$(mktemp cargo-config.XXXX)
- if [[ -n "$NIX_CRATES_INDEX" ]]; then
cat >$CARGO_HOME/config.toml <<EOF
+ [registries.crates-io]
+ protocol = 'sparse'
+ EOF
+
+ if [[ -n "$NIX_CRATES_INDEX" ]]; then
+ cat >>$CARGO_HOME/config.toml <<EOF
[source.crates-io]
replace-with = 'mirror'
[source.mirror] For |
or we can set the environment variable |
Opened a PR for this: #222444 |
1.68.1 is released |
Upgrading. |
Done and tested. |
Built firefox on x86_64-linux |
@ofborg build fd |
Built thunderbird on aarch64-linux |
Build passthru.tests on aarch64-darwin, x86-64_darwin. |
Should we add release notes for this upgrade? |
Apologies, I meant: do you think I should do this change in this PR? I apologize if it has been taken aggressively. (English language barrier yadayada). |
I mean, yes. You can cherry pick the smaller env var patch from #222444. It also causes no rebuild since it affects only FODs. |
Done, thank you and sorry again for realizing too late I misunderstood your message. |
Reproducible ICE is interesting? https://hydra.nixos.org/build/214913529 |
turns out rust-lang/rust#107688 was not in 1.68, opened #225778 to fix that |
Ugh, sorry for that. |
Edit: I think I found the problem.
When building the `rustc`'s vendored libraries, they are unable to find `std::`, which I find quite baffling. Any ideas?
Below is a sampling of the error messages (there are hundreds like this) from
|
Binaries generated by crate2nix (buildRustCrate) are much bigger after the last staging iteration, most likely do to rust bump (still checking), debug and release are affected. I've tested on some internal crate. Commit before merge
After merge:
|
Can you try by disabling auditable? (cargo-auditable) |
|
It is not connected with rust version bump, after reverting to a 1.67.1 on master binaries are still much bigger. |
Can you do a bisect? |
@lblasc, unless you are 100% sure that it was this PR that caused your problem, you need to open a new issue for your problem (you can reference it here). Otherwise the discussion keeps getting moved from one PR to another, pinging the wrong people.
Please post a complete reproducer in the new issue when you open it. Note: before #210843 |
Interesting, it worked all with git deps before this PR. What was reason? |
@dzmitry-lahoda You're about 6 months late to this discussion, but we talked about this issue (as well as the best way to handle it) for months. This isn't a breakage on our part, but Cargo's. See #217084, #221716, and the minimal discussion in these comments (starting here) for more information. If you're working with a local project that doesn't have the limitations of Nixpkgs, just use I'd appreciate it if you did a tad bit of research (such as even reading the comments on this PR) before assuming that we didn't put in the work to solve this issue, or that we never noticed it. |
sorry, thank you for hard work |
Description of changes
https://github.com/rust-lang/rust/blob/master/RELEASES.md
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/
)