rustPlatform.fetchCargoVendor: fetch git submodules#356415
Merged
TomaSajt merged 2 commits intoNixOS:masterfrom Nov 16, 2024
Merged
rustPlatform.fetchCargoVendor: fetch git submodules#356415TomaSajt merged 2 commits intoNixOS:masterfrom
TomaSajt merged 2 commits intoNixOS:masterfrom
Conversation
0b7b447 to
58e265d
Compare
JohnRTitor
reviewed
Nov 16, 2024
Member
JohnRTitor
left a comment
There was a problem hiding this comment.
Could you run a nixpkgs-review on this to see if the other packages using this fetcher have their hash changed?
Contributor
Author
|
Checked all other uses of and their hash didn't change, so it seems like they don't use submodules |
Contributor
Author
|
Member
|
JohnRTitor
approved these changes
Nov 16, 2024
Member
|
Contributor
Author
|
I'll merge this in an hour. |
Member
|
Sure, I was just waiting for eval. |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PR, where this issue was discovered: #356385
Looks like I missed that
fetchgithasfetchSubmodulesset totrueby default, so when I was copying theimportCargoLockimplementation, I did not also fetch the submodules like (it turns out) it did.fetchgitdefaults:nixpkgs/pkgs/build-support/fetchgit/default.nix
Lines 14 to 33 in 7b16c13
importCargoLockcallingfetchgit:nixpkgs/pkgs/build-support/rust/import-cargo-lock.nix
Lines 148 to 152 in 7b16c13
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.