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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding sparse protocol #304583
base: master
Are you sure you want to change the base?
Adding sparse protocol #304583
Conversation
Commit message should be updated to follow the commit conventions. |
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.
Overall, this looks good, thank you so much! I haven't been keeping up with the progress of the sparse registry -- I had thought that it wouldn't actually change the lock file, but looks like I'm wrong there.
Could you add a small test for it? See pkgs/build-support/rust/test/import-cargo-lock
. My first instinct would be to just add it to basic
, but depending on how things work with lockfile generation, might be best just to add a new test.
Commit message should be updated to follow the commit conventions.
Beat me to it, thanks! +1, please do this.
06a7494
to
49b0780
Compare
Changed commit to follow the conventions.
That's true for crates.io, but if you want to use a self hosted alternative like kellnr isn't working with this. You have to define the registry as sparse+https://... and every dependency on Cargo.lock will be the same. |
49b0780
to
47e807e
Compare
When added the new sparse protocol the derivation is not handling properly Cargo.lock with sparse+ registries
47e807e
to
e6dc0fb
Compare
Ok, some modifications were made looking for:
Hope everything seems good enough now. |
@marcusramberg @winterqt can you please review the latest changes? |
I'll take a look in a few hours, thanks for re-pinging. |
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.
lgtm
Description of changes
Adding new sparse registry protocol to rust builders with minimal changes.
Properly building fetching from kellnr self hosted instance.
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.