-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
rustPlatform.importCargoLock: allow duplicated packages with git. #282798
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
base: staging
Are you sure you want to change the base?
Conversation
greetings @junjihashimoto this should target staging branch due to mass rebuilds https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#changes-causing-mass-rebuilds beware of commit pitfall when changing target branch https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging |
@kirillrdy Thx! Rebased to staging branch. |
b17a692
to
23aa765
Compare
LGTM. I am able to use this branch to build a rust binary which I couldn't build with |
Interestingly this doesn't solve my issue trying to built qdrant 1.8.4, which contains two "wal 0.1.2"s with different git revs https://github.com/qdrant/qdrant/blob/v1.8.4/Cargo.lock |
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.
tested with a sui flake that would not compile otherwise.
LGTM
@junjihashimoto can you rebase ? |
Sure! |
I had success with the last version but now it breaks while building postgresql.
|
Is there something we can help with here? Testing or anything |
@TomaSajt |
@TomaSajt Please let me know if there's anything else blocking the approval or if you have any other concerns. |
We should wait for the mass migration PRs to reach master, first. After that, the packages that still use |
@TomaSajt
|
It might be better to add an option to make it compatible. |
We really need to get this fix landed. Using the branch requires hours of compilation time and vendor is clearly broken with out. |
I picked up the This way we can solve the issue quicker, without having to figure out what's the simplest and/or best implementation for |
Any updates on this? |
FWIW: until these PRs land, you can just vendor the functions locally without needing to rebuild the world. I’m going to read up on what happened here and split this PR into just the |
Can you give a little hint what the best way would be to achieve this? I would have tried to apply an overlay patch... |
@itpropro Let's not clutter this thread more -- join |
I'm coming here to figure this out as well. Are you sure this quite important information should move whole other platform? |
Asking on every PR "how do I apply this PR" is practically spam, ask on discourse.nixos.org if you want. PR comments are for feedback on the content of the PR. |
To be honest, I don't have the authority to merge, so it would be helpful if someone motivated could take over and accomplish the task. |
To be fair, that was not what was asked, because just applying the PR didn't work in this case. It was especially about the part
I agree that both of these should not be discussed here, but you have to consider that more and more packages are not updated because of the rust issues, so people will naturally stumble upon this PR when looking for a solution. |
At the very least, if we need to revert later, reverting a treewide should be independent of the breaking change; we've seen issues in the past when trying to tackle both in the same PR. Merge conflicts also get much more onerous to handle.
@winterqt based on my thoughts above: separate PR would be safer. (As long as they get credit for their work via |
@eclairevoyant I’m not sure what you mean — to clarify, by “split this PR” I meant just removing the |
There are packages that relied on the layout of their vendor directory, those needed a treewide update, because our changes would break that assumption. In #387337 I have a treewide fix for packages that use Of course, out-of-tree packages making this assumption will break no matter what, but they'll just have to deal with it... So yeah, a "treewide" (3 packages) commit is still missing from this PR (or its split off continuation). |
Yeah, so let’s include the fixes here — no need for a separate PR. My question was about whether I should reuse/push to this PR, or if I should open a new one. |
Pushing here sounds fine then, if you have access to do so. |
Description of changes
Fix these issues(#183344 and #30742).
This patch does the same thing of
cargo-vendor --no-merge-sources
.It puts git sources to 'git-<sha>' directory.
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.