-
-
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
vector: 0.10.0 -> 0.11.0 #107557
vector: 0.10.0 -> 0.11.0 #107557
Conversation
}; | ||
|
||
cargoSha256 = "Y/vDYXWQ65zZ86vTwP4aCZYCMZuqbz6tpfv4uRkFAzc="; | ||
cargoSha256 = ""; |
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.
You need to set this.
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.
Agreed. I wanted to make it clear that this needs to be updated. But you are perfectly right!
I'll leave this here until the build issue has been solved.
Thanks!
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks for the comment! I'm guessing this will not be possible to merge in the short term then. |
Technically, if you can obtain a "correct" cargo.lock by pinning versions differently, you can use this cargo.lock (see section 15.23.1.5. Building a crate with an absent or out-of-date Cargo.lock file of the nixpkgs manual) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/comparing-solutions-for-building-rust-on-nix/10707/4 |
@symphorien Thanks for the update I've just checked the section, and they suggest using cargo.lock patch. However in this case I'm not even sure what to patch, as the cargo.lock is potentially correct, just referring to two different crates with the same name. |
@happysalada please fix the eval error. |
@SuperSandro2000 thanks for checking up on this. |
Oh, didn't read the rest. I would create an issue how upstream wants to support cargo vendor. |
the issue was opened upstream. So this is waiting for it. Let me know if anything else is needed. |
I have seen this issue with cargo-vendor before but also don't have a solution for it. |
from vectordotdev/vector#5738 (comment), which is one of the upstream issues triggered by our problem |
cargo update is not deterministic, as its result depends on network. |
yes, it might result in introduction of another |
superseded |
Motivation for this change
upgrade vector
Things done
This is more a RFC at this point. @thoughtpolice when you have a moment.
(I've run nixfmt on this, I hope it's not a problem. The only change is version and sha256 corresponding)
Trying to build this, you'll get the
This is caused by the fact that vector has a dependency on two libraries named tracing with different sources and versions.
https://github.com/timberio/vector/blob/master/Cargo.lock#L6717
and
https://github.com/timberio/vector/blob/master/Cargo.lock#L6727
I'm not sure what's the best way to resolve this?
In this case, vector has all it's dependencies defined clearly in the cargo.lock, is there even a need to run the vendored script?
@symphorien @Mic92 perhaps you have a better idea of how to solve the problem of having two dependencies named exactly the same?
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)