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

Remove unused sha256 argument for Git dependencies #124

Merged
merged 3 commits into from
Jul 13, 2020

Conversation

ebkalderon
Copy link
Member

@ebkalderon ebkalderon commented Jul 13, 2020

Changed

  • Simplify checksum field of ResolvedPackage from Option<Cow<'a, str> to Option<&'a str>.

Removed

  • Remove unused sha256 argument for Git dependencies.
  • Remove serde_json dependency.
  • Remove private prefetch_git function.
  • Remove nix-prefetch-git wrapper from default.nix.

This argument has been rendered unused since the transition to builtins.fetchGit for all Git dependencies was made (#113). Since a minor release is coming soon, due to #119, this breaking change should now be safe to roll out.

Closes #102.

This argument has been rendered unused since the transition to
`builtins.fetchGit` for all Git dependencies. Since a minor release is
coming soon, this breaking change should now be safe to roll out.
@ebkalderon ebkalderon self-assigned this Jul 13, 2020
Copy link
Member

@trha trha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the wrapper in default.nix which bundles nix-prefetch-git with cargo2nix too.

@ebkalderon
Copy link
Member Author

@trha Sure! I'll do that next. I also noticed that I can turn checksum into a &'a str instead of a Cow<'a, str>, now that the Owned case has been eliminated, so I'll do that as well.

Eyal Kalderon added 2 commits July 13, 2020 17:16
Since the `Owned` case has been eliminated in the previous commit, there
is no need to use `std::borrow::Cow` for this field anymore.
This is no longer necessary, now that we use `builtins.fetchGit`
everywhere.
@ebkalderon ebkalderon requested a review from trha July 13, 2020 09:20
@ebkalderon
Copy link
Member Author

Done! Would you mind re-reviewing, please, @trha?

Copy link
Member

@trha trha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ebkalderon
Copy link
Member Author

Okay, merging this in. I imagine this should be okay, since we've been awaiting this transition for a long time now.

@ebkalderon ebkalderon merged commit cf487a5 into master Jul 13, 2020
@ebkalderon ebkalderon deleted the remove-sha256-arg branch July 13, 2020 09:56
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.

Consider using builtins.fetchGit over nix-prefetch-git
2 participants