-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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.0.0 -> 1.1.0 #8668
rustc: 1.0.0 -> 1.1.0 #8668
Conversation
75bcbd9
to
2b929ca
Compare
Looks good to me. @telotortium Did you build it locally ? If not, I guess we could just send it to hydra. |
Great! Could you update cargo too? Thanks a lot. |
Looks good to me too. |
@flosse I'm in the process of updating nightly rust, cargo and racerRust. |
@flosse I've updated cargo locally too, as well as
|
|
Actually, I needed to update the Cargo snapshot to some later nightly (I used 2015-06-17) to avoid rust-lang/cargo#976. |
@madjar I've installed rustc and cargo locally, but I'm going to use |
What about |
9daccd5
to
d782f28
Compare
@jagajaga The current version of racer builds fine for me after the updates to rustc and cargo. |
@wizeman Implemented your suggestions. |
Instead of removing Furthermore, I didn't see that this was here, so I made a PR (#8701) myself that included various comments for how to update the rustc snapshot information. Can you perhaps merge those comments into your PR? |
d782f28
to
1469e6a
Compare
You can keep me as a maintainer. Now that I know how, it's not a major burden to do it. |
When testing these commits locally I got a hash mismatch in cargo: Failed: output path ‘/nix/store/l5rfbx2b1plrjljilpv8zfg8ix6wssfw-cargo’ should have r:sha256 hash ‘1y90d5zdlivsx67ac5k4zr5d4m6mirbhj76xp0fwd7k61rx0svws’, instead has ‘1ckb2xd7nm8357imw6b1ci2ar8grnihzan94kvmjrijq6sz8yv9i’ Did you update the hash when you switched to using |
I remember a vague mention somewhere that |
Perhaps you're referring to #8567. It could be because of that, but this type of problem is more likely to be because you didn't update the hash when you switched to using Note that you won't necessarily experience this error even if you forgot to update the hash, because Nix will reuse the output of the previous hash if you had already downloaded it. This means it would work on your machine (because Nix had already fetched the contents that had the previous hash), but it wouldn't work on others... |
That could be it. How do you force Nix to do a rebuild? |
Usually nix will not rebuild the same package unless the inputs have changed. Right now, on your machine, even though you changed the git revision, nix still thinks the inputs haven't changed because the input hash hasn't changed. So what I do in this case is to change the last character of the hash (to a zero, for example), which makes Nix think that the input has changed. If you then tell Nix to build the package, Nix will rebuild it (because the hash changed), then it will complain about a wrong hash and tell you the correct one at the same time (like in the error message I showed above). There is a more standard solution to rebuild a package, which involves running So I think the first suggestion I mentioned, although hackier, is easier to get right. |
Use stable Rust now that Cargo builds on stable Rust.
Update snapshot to avoid rust-lang/cargo#976, which otherwise breaks the build. Also move the `cargoSnapshot` derivation inside a set in pkgs/top-level/all-packages.nix in order to hide the `cargo-snapshot` packages from `nix-env -qa`, since it's only used to build the `cargo` package.
Rename cargo to use a version number rather than a date because Cargo has started releasing packages using version numbers.
1469e6a
to
51972d4
Compare
I pushed the change to the Cargo hash |
Merged. Thanks! |
No description provided.