Skip to content

chore(deps): Update Rust crate git2 to 0.20.0 - autoclosed #873

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

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2025

This PR contains the following updates:

Package Type Update Change
git2 dependencies minor 0.19.0 -> 0.20.0

Release Notes

rust-lang/git2-rs (git2)

v0.20.1

Compare Source

0.20.0...0.20.1

Added
  • Added Repository::branch_upstream_merge()
    #​1131
  • Added Index::conflict_get()
    #​1134
  • Added Index::conflict_remove()
    #​1133
  • Added opts::set_cache_object_limit()
    #​1118
  • Added Repo::merge_file_from_index() and associated MergeFileOptions and MergeFileResult.
    #​1062
Changed
  • The url dependency minimum raised to 2.5.4
    #​1128
  • Changed the tracing callback to abort the process if the callback panics instead of randomly detecting the panic in some other function.
    #​1121
  • Credential helper config (loaded with CredentialHelper::config) now checks for helpers that start with something that looks like an absolute path, rather than checking for a / or \ anywhere in the helper string (which resolves an issue if the helper had arguments with / or \).
    #​1137
Fixed
  • Fixed panic in Remote::url_bytes if the url is empty.
    #​1120
  • Fixed incorrect lifetimes on Patch::delta, Patch::hunk, and Patch::line_in_hunk. The return values must not outlive the Patch.
    #​1141
  • Bumped requirement to libgit2-sys 0.18.1, which fixes linking of advapi32 on Windows.
    #​1143

v0.20.0

Compare Source

0.19.0...0.20.0

Added
  • Debug is now implemented for transport::Service
    #​1074
  • Added Repository::commondir
    #​1079
  • Added Repository::merge_base_octopus
    #​1088
  • Restored impls for PartialOrd, Ord, and Hash for bitflags types that were inadvertently removed in a prior release.
    #​1096
  • Added CheckoutBuilder::disable_pathspec_match
    #​1107
  • Added PackBuilder::write
    #​1110
Changed
  • ❗ Updated to libgit2 1.9.0
    #​1111
  • ❗ Removed the ssh_key_from_memory Cargo feature, it was unused.
    #​1087
  • ❗ Errors from Tree::walk are now correctly reported to the caller.
    #​1098
  • ❗ The trace_set callback now takes a &[u8] instead of a &str.
    #​1071
  • Error::last_error now returns Error instead of Option<Error>.
    #​1072
Fixed
  • Fixed OdbReader::read return value.
    #​1061
  • When a credential helper executes a shell command, don't pop open a console window on Windows.
    #​1075

Configuration

📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Apr 1, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `libgit2-sys`.
    ... required by package `git2 v0.20.0`
    ... which satisfies dependency `git2 = "^0.20.0"` of package `cargo-release v0.25.17 (/tmp/renovate/repos/github/crate-ci/cargo-release)`
versions that meet the requirements `^0.18.0` are: 0.18.1+1.9.0, 0.18.0+1.9.0

the package `libgit2-sys` links to the native library `git2`, but it conflicts with a previous package which links to `git2` as well:
package `libgit2-sys v0.17.0+1.8.1`
    ... which satisfies dependency `libgit2-sys = "^0.17.0"` of package `git2 v0.19.0`
    ... which satisfies dependency `git2 = "^0.19.0"` of package `cargo-test-support v0.7.0`
    ... which satisfies dependency `cargo-test-support = "^0.7"` of package `cargo-release v0.25.17 (/tmp/renovate/repos/github/crate-ci/cargo-release)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "git2"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `libgit2-sys` which could resolve this conflict

@renovate renovate bot force-pushed the renovate/git2-0.x branch from d154e32 to 8e56307 Compare April 1, 2025 15:33
@renovate renovate bot changed the title chore(deps): Update Rust crate git2 to 0.20.0 chore(deps): Update Rust crate git2 to 0.20.0 - autoclosed Apr 9, 2025
@renovate renovate bot closed this Apr 9, 2025
@renovate renovate bot deleted the renovate/git2-0.x branch April 9, 2025 22:40
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.

0 participants