Skip to content
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

do not prefetch git dependencies #382

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

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.

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