Skip to content

Conversation

hallettj
Copy link

Git prefetching is made unnecessary by switching from pkgs.fetchgit to builtins.fetchGit. In addition to simplifying handling git deps this change is a necessary prerequisite to handling git dependencies inside cargo workspaces when running crate2nix in IFD mode.

Since this change requires modifying git-fetching code in multiple places I took some steps to make fetching as consistent as possible in each place. Part of that was introduce steps to parse git hashes to verify that those inputs are indeed valid hashes. On the Rust side that is done with the type CommitHash. On the Nix side there is parseCommitHash.

@hallettj hallettj mentioned this pull request Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant