nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix

Home Page:https://nix-community.github.io/crate2nix/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sort package names returned from cargo metadata

Fuuzetsu opened this issue · comments

We've seen sometimes in our CI that crate2nix can generate Cargo.nix with dependencies in arbitrary order. It doesn't shuffle anything itself but it appears that under some circumstances, cargo metadata can produce dependency list in different order. I was unable to come up with a test to show this.

We've been running Fuuzetsu@7ef0f0e for a long time and it fixed the issue. I forgot to make a ticket on this repo...

oli-obk/cargo_metadata#228 - this resolves the problem on cargo_metadata side I think.

And crate2nix uses version that includes this fix.

OK. I'll close this issue and try to update our fork.