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

Fixups for cargo-semver-checks #4

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Fixups for cargo-semver-checks #4

merged 3 commits into from
Jul 26, 2023

Conversation

Jake-Shadle
Copy link
Member

  • Add helpers to GitError
  • Make gix and reqwest exported via crate::externals

While working on a PR to resolve obi1kenobi/cargo-semver-checks#487, that crate was looking at the error for git operations to determine if they should be retried, which is....unfortunately way more complicated with gix. So this just adds helper methods on GitError to make that use case nicer.

The errors for gix are incredibly complicated, so this just adds some
helper methods for determining if an error is due to a fetch
(potentially) spuriously failing and _might_ succeed if retried
This allows downstream crates to access these important crate as
reexports rather than needing to have a direct dependency themselves
@Jake-Shadle Jake-Shadle merged commit f713fe3 into main Jul 26, 2023
@Jake-Shadle Jake-Shadle deleted the fixup branch July 26, 2023 12:21
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.

Can't use sparse registry mirror
1 participant