Skip to content

chore(deps): update rust crate git2 to 0.20 [security]#35

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/crate-git2-vulnerability
Open

chore(deps): update rust crate git2 to 0.20 [security]#35
renovate[bot] wants to merge 1 commit intomainfrom
renovate/crate-git2-vulnerability

Conversation

@renovate
Copy link

@renovate renovate bot commented Mar 1, 2026

This PR contains the following updates:

Package Type Update Change
git2 dependencies minor 0.190.20

GitHub Vulnerability Alerts

GHSA-j39j-6gw9-jw6h

If the Buf struct is dereferenced immediately after calling new() or default() on the Buf struct, a null pointer is passed to the unsafe function slice::from_raw_parts. According to the safety section documentation of the function, data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing a null pointer will lead to undefined behavior.


Release Notes

rust-lang/git2-rs (git2)

v0.20.4

Compare Source

v0.20.3

Compare Source

v0.20.2

Compare Source

0.20.1...0.20.2

Added
Fixed
  • Added missing codes for GIT_EDIRECTORY, GIT_EMERGECONFLICT, GIT_EUNCHANGED, GIT_ENOTSUPPORTED, and GIT_EREADONLY to Error::raw_code.
    #​1153
  • Fixed missing initialization in Indexer::new.
    #​1160

v0.20.1

Compare Source

0.20.1...0.20.2

Added
Fixed
  • Added missing codes for GIT_EDIRECTORY, GIT_EMERGECONFLICT, GIT_EUNCHANGED, GIT_ENOTSUPPORTED, and GIT_EREADONLY to Error::raw_code.
    #​1153
  • Fixed missing initialization in Indexer::new.
    #​1160

v0.20.0

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

Configuration

📅 Schedule: Branch creation - "" in timezone America/Chicago, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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.

@renovate renovate bot added the priority label Mar 1, 2026
@renovate
Copy link
Author

renovate bot commented Mar 1, 2026

⚠️ 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 --package git2@0.19.0 --precise 0.20.4
    Updating crates.io index
    Updating git repository `https://gitlab.archlinux.org/archlinux/alpm/alpm.git`
From https://gitlab.archlinux.org/archlinux/alpm/alpm
 * [new branch]      chore/fix-clippy-lints -> origin/chore/fix-clippy-lints
 * [new branch]      docs/alpm-repo-name-length -> origin/docs/alpm-repo-name-length
 * [new branch]      docs/use-ascii-in-alpm-source-repo -> origin/docs/use-ascii-in-alpm-source-repo
 * [new branch]      docs/version-comparison-licensing -> origin/docs/version-comparison-licensing
 * [new branch]      feat/alpm-config       -> origin/feat/alpm-config
 * [new branch]      feat/alpm-db-impl      -> origin/feat/alpm-db-impl
 * [new branch]      feat/alpm-solve        -> origin/feat/alpm-solve
 * [new branch]      feat/alpm-soname-lookup-test -> origin/feat/alpm-soname-lookup-test
 * [new branch]      feat/i18n              -> origin/feat/i18n
 * [new branch]      feat/relation_satisfiability -> origin/feat/relation_satisfiability
 * [new branch]      feat/soname-elf        -> origin/feat/soname-elf
 * [new branch]      feat/soname_detection  -> origin/feat/soname_detection
 * [new branch]      main                   -> origin/main
 * [new branch]      refactor/parser-until  -> origin/refactor/parser-until
 * [new branch]      renovate/digest-0.x    -> origin/renovate/digest-0.x
 * [new branch]      renovate/pyo3-0.x      -> origin/renovate/pyo3-0.x
 * [new branch]      voa-core               -> origin/voa-core
 * [new ref]         HEAD                   -> origin/HEAD
 * [new tag]         alpm-buildinfo/0.1.0   -> alpm-buildinfo/0.1.0
 * [new tag]         alpm-buildinfo/0.2.0   -> alpm-buildinfo/0.2.0
 * [new tag]         alpm-buildinfo/0.3.0   -> alpm-buildinfo/0.3.0
 * [new tag]         alpm-buildinfo/0.3.1   -> alpm-buildinfo/0.3.1
 * [new tag]         alpm-buildinfo/0.4.0   -> alpm-buildinfo/0.4.0
 * [new tag]         alpm-buildinfo/0.5.0   -> alpm-buildinfo/0.5.0
 * [new tag]         alpm-buildinfo/0.5.1   -> alpm-buildinfo/0.5.1
 * [new tag]         alpm-buildinfo/0.5.2   -> alpm-buildinfo/0.5.2
 * [new tag]         alpm-common/0.1.0      -> alpm-common/0.1.0
 * [new tag]         alpm-common/0.1.1      -> alpm-common/0.1.1
 * [new tag]         alpm-common/0.1.2      -> alpm-common/0.1.2
 * [new tag]         alpm-common/0.1.3      -> alpm-common/0.1.3
 * [new tag]         alpm-common/0.2.0      -> alpm-common/0.2.0
 * [new tag]         alpm-common/0.2.1      -> alpm-common/0.2.1
 * [new tag]         alpm-compress/0.1.0    -> alpm-compress/0.1.0
 * [new tag]         alpm-compress/0.1.1    -> alpm-compress/0.1.1
 * [new tag]         alpm-compress/0.1.2    -> alpm-compress/0.1.2
 * [new tag]         alpm-db/0.1.0          -> alpm-db/0.1.0
 * [new tag]         alpm-db/0.2.0          -> alpm-db/0.2.0
 * [new tag]         alpm-db/0.2.1          -> alpm-db/0.2.1
 * [new tag]         alpm-files/0.1.0       -> alpm-files/0.1.0
 * [new tag]         alpm-lint-config/0.1.0 -> alpm-lint-config/0.1.0
 * [new tag]         alpm-lint-config/0.1.1 -> alpm-lint-config/0.1.1
 * [new tag]         alpm-lint/0.1.0        -> alpm-lint/0.1.0
 * [new tag]         alpm-lint/0.1.1        -> alpm-lint/0.1.1
 * [new tag]         alpm-lint/0.2.0        -> alpm-lint/0.2.0
 * [new tag]         alpm-lint/0.3.0        -> alpm-lint/0.3.0
 * [new tag]         alpm-lint/0.3.1        -> alpm-lint/0.3.1
 * [new tag]         alpm-mtree/0.1.0       -> alpm-mtree/0.1.0
 * [new tag]         alpm-mtree/0.2.0       -> alpm-mtree/0.2.0
 * [new tag]         alpm-mtree/0.2.1       -> alpm-mtree/0.2.1
 * [new tag]         alpm-mtree/0.2.2       -> alpm-mtree/0.2.2
 * [new tag]         alpm-mtree/0.2.3       -> alpm-mtree/0.2.3
 * [new tag]         alpm-mtree/0.3.0       -> alpm-mtree/0.3.0
 * [new tag]         alpm-mtree/0.3.1       -> alpm-mtree/0.3.1
 * [new tag]         alpm-mtree/0.3.2       -> alpm-mtree/0.3.2
 * [new tag]         alpm-package/0.1.0     -> alpm-package/0.1.0
 * [new tag]         alpm-package/0.2.0     -> alpm-package/0.2.0
 * [new tag]         alpm-package/0.2.1     -> alpm-package/0.2.1
 * [new tag]         alpm-package/0.3.0     -> alpm-package/0.3.0
 * [new tag]         alpm-package/0.4.0     -> alpm-package/0.4.0
 * [new tag]         alpm-package/0.4.1     -> alpm-package/0.4.1
 * [new tag]         alpm-parsers/0.1.0     -> alpm-parsers/0.1.0
 * [new tag]         alpm-parsers/0.2.0     -> alpm-parsers/0.2.0
 * [new tag]         alpm-parsers/0.3.0     -> alpm-parsers/0.3.0
 * [new tag]         alpm-parsers/0.3.1     -> alpm-parsers/0.3.1
 * [new tag]         alpm-parsers/0.4.0     -> alpm-parsers/0.4.0
 * [new tag]         alpm-parsers/0.4.1     -> alpm-parsers/0.4.1
 * [new tag]         alpm-pkgbuild/0.1.0    -> alpm-pkgbuild/0.1.0
 * [new tag]         alpm-pkgbuild/0.2.0    -> alpm-pkgbuild/0.2.0
 * [new tag]         alpm-pkgbuild/0.2.1    -> alpm-pkgbuild/0.2.1
 * [new tag]         alpm-pkgbuild/0.2.2    -> alpm-pkgbuild/0.2.2
 * [new tag]         alpm-pkgbuild/0.2.3    -> alpm-pkgbuild/0.2.3
 * [new tag]         alpm-pkginfo/0.1.0     -> alpm-pkginfo/0.1.0
 * [new tag]         alpm-pkginfo/0.2.0     -> alpm-pkginfo/0.2.0
 * [new tag]         alpm-pkginfo/0.3.0     -> alpm-pkginfo/0.3.0
 * [new tag]         alpm-pkginfo/0.3.1     -> alpm-pkginfo/0.3.1
 * [new tag]         alpm-pkginfo/0.4.0     -> alpm-pkginfo/0.4.0
 * [new tag]         alpm-pkginfo/0.5.0     -> alpm-pkginfo/0.5.0
 * [new tag]         alpm-pkginfo/0.6.0     -> alpm-pkginfo/0.6.0
 * [new tag]         alpm-pkginfo/0.6.1     -> alpm-pkginfo/0.6.1
 * [new tag]         alpm-repo-db/0.1.0     -> alpm-repo-db/0.1.0
 * [new tag]         alpm-repo-db/0.1.1     -> alpm-repo-db/0.1.1
 * [new tag]         alpm-soname/0.1.0      -> alpm-soname/0.1.0
 * [new tag]         alpm-soname/0.2.0      -> alpm-soname/0.2.0
 * [new tag]         alpm-soname/0.3.0      -> alpm-soname/0.3.0
 * [new tag]         alpm-soname/0.4.0      -> alpm-soname/0.4.0
 * [new tag]         alpm-soname/0.4.1      -> alpm-soname/0.4.1
 * [new tag]         alpm-srcinfo/0.1.0     -> alpm-srcinfo/0.1.0
 * [new tag]         alpm-srcinfo/0.2.0     -> alpm-srcinfo/0.2.0
 * [new tag]         alpm-srcinfo/0.3.0     -> alpm-srcinfo/0.3.0
 * [new tag]         alpm-srcinfo/0.4.0     -> alpm-srcinfo/0.4.0
 * [new tag]         alpm-srcinfo/0.5.0     -> alpm-srcinfo/0.5.0
 * [new tag]         alpm-srcinfo/0.6.0     -> alpm-srcinfo/0.6.0
 * [new tag]         alpm-srcinfo/0.6.1     -> alpm-srcinfo/0.6.1
 * [new tag]         alpm-srcinfo/0.6.2     -> alpm-srcinfo/0.6.2
 * [new tag]         alpm-types/0.1.0       -> alpm-types/0.1.0
 * [new tag]         alpm-types/0.10.0      -> alpm-types/0.10.0
 * [new tag]         alpm-types/0.11.0      -> alpm-types/0.11.0
 * [new tag]         alpm-types/0.11.1      -> alpm-types/0.11.1
 * [new tag]         alpm-types/0.2.0       -> alpm-types/0.2.0
 * [new tag]         alpm-types/0.3.0       -> alpm-types/0.3.0
 * [new tag]         alpm-types/0.4.0       -> alpm-types/0.4.0
 * [new tag]         alpm-types/0.5.0       -> alpm-types/0.5.0
 * [new tag]         alpm-types/0.6.0       -> alpm-types/0.6.0
 * [new tag]         alpm-types/0.7.0       -> alpm-types/0.7.0
 * [new tag]         alpm-types/0.8.0       -> alpm-types/0.8.0
 * [new tag]         alpm-types/0.9.0       -> alpm-types/0.9.0
 * [new tag]         python-alpm/0.1.0      -> python-alpm/0.1.0
 * [new tag]         python-alpm/0.2.0      -> python-alpm/0.2.0
 * [new tag]         python-alpm/0.2.1      -> python-alpm/0.2.1
 * [new tag]         python-alpm/0.3.0      -> python-alpm/0.3.0
 * [new tag]         python-alpm/0.4.0      -> python-alpm/0.4.0
 * [new tag]         python-alpm/0.4.1      -> python-alpm/0.4.1
    Updating git submodule `https://gitlab.archlinux.org/dvzrv/linkita.git`
From https://gitlab.archlinux.org/dvzrv/linkita
 * [new branch]      improve_search  -> origin/improve_search
 * [new branch]      kita            -> origin/kita
 * [new branch]      linkita         -> origin/linkita
 * [new branch]      v4              -> origin/v4
 * [new ref]         HEAD            -> origin/HEAD
 * [new tag]         v0.2024_11_01.0 -> v0.2024_11_01.0
 * [new tag]         v1.2025_01_04.0 -> v1.2025_01_04.0
 * [new tag]         v2.2025_04_02.0 -> v2.2025_04_02.0
 * [new tag]         v3.2025_04_22   -> v3.2025_04_22
error: failed to select a version for the requirement `git2 = "^0.19.0"`
candidate versions found which didn't match: 0.20.4
location searched: crates.io index
required by package `libscoop v0.1.0-beta.7`
    ... which satisfies dependency `libscoop = "^0.1.0-beta.7"` of package `omg v0.1.214 (/tmp/renovate/repos/github/PyRo1121/omg)`

@renovate renovate bot force-pushed the renovate/crate-git2-vulnerability branch from eeca145 to f243fa1 Compare March 8, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants