Skip to content

chore(deps): update rust crate gix to 0.81.0#16815

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/gix-0.x
Closed

chore(deps): update rust crate gix to 0.81.0#16815
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/gix-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 1, 2026

This PR contains the following updates:

Package Type Update Change
gix workspace.dependencies minor 0.80.00.81.0

Release Notes

GitoxideLabs/gitoxide (gix)

v0.81.0: gix v0.81.0

Compare Source

Bug Fixes
  • Correctly use $COMMON_DIR/info/exclude to make excludes work in worktrees.
    It turns out there is no per-worktree excludes file either.
  • gix::open::Permissions now can be compared, and add is_isolated() method.
  • ignore assume-unchanged submodule path replaced by symlink in status
Chore (BREAKING)
  • Upgrade prodash and crosstermion to the latest version.
    This will fix the cargo deny issue as it brings in a newer lru crate.
New Features
  • add Repository::reopen() as quick way to reload all configuration and drop caches.
  • add sha1 and sha256 features to gix.
    This way one can control which hashes are compiled in exactly,
    while having reasonable defaults automatically.
Commit Statistics
  • 18 commits contributed to the release.
  • 4 commits were understood as conventional.
  • 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
  • Uncategorized
    • Release gix-error v0.2.1, gix-date v0.15.1, gix-path v0.11.2, gix-features v0.46.2, gix-hash v0.23.0, gix-hashtable v0.13.0, gix-object v0.58.0, gix-packetline v0.21.2, gix-filter v0.28.0, gix-fs v0.19.2, gix-commitgraph v0.35.0, gix-revwalk v0.29.0, gix-traverse v0.55.0, gix-worktree-stream v0.30.0, gix-archive v0.30.0, gix-tempfile v21.0.2, gix-lock v21.0.2, gix-index v0.49.0, gix-pathspec v0.16.1, gix-ignore v0.19.1, gix-worktree v0.50.0, gix-diff v0.61.0, gix-blame v0.11.0, gix-ref v0.61.0, gix-sec v0.13.2, gix-config v0.54.0, gix-prompt v0.14.1, gix-credentials v0.37.1, gix-discover v0.49.0, gix-dir v0.23.0, gix-revision v0.43.0, gix-merge v0.14.0, gix-negotiate v0.29.0, gix-pack v0.68.0, gix-odb v0.78.0, gix-refspec v0.39.0, gix-shallow v0.10.0, gix-transport v0.55.1, gix-protocol v0.59.0, gix-status v0.28.0, gix-submodule v0.28.0, gix-worktree-state v0.28.0, gix v0.81.0, gix-fsck v0.19.0, gitoxide-core v0.55.0, gitoxide v0.52.0, safety bump 31 crates (c389a2c)
    • Merge pull request #​2470 from GitoxideLabs/improvements (1a72380)
    • gix::open::Permissions now can be compared, and add is_isolated() method. (c80fa4c)
    • Merge pull request #​2469 from GitoxideLabs/improvements (26d5197)
    • Add Repository::reopen() as quick way to reload all configuration and drop caches. (f15911c)
    • Merge pull request #​2454 from GitoxideLabs/dependabot/cargo/cargo-da044b9bb0 (6183fd0)
    • Make CI work again (5213afe)
    • Bump the cargo group with 68 updates (6bdb331)
    • Merge pull request #​2441 from cruessler/remove-sha-1-from-default-features (e8bf096)
    • Add sha1 and sha256 features to gix. (3832916)
    • Adapt to sha1 not being default feature of gix-hash (e71c703)
    • Merge pull request #​2437 from GitoxideLabs/copilot/fix-issue-2435-in-gix-crate (dad2a82)
    • Address Codex review (34d3c17)
    • Refactor (fa65501)
    • Ignore assume-unchanged submodule path replaced by symlink in status (72134f5)
    • Merge pull request #​2445 from GitoxideLabs/improvements (6a7287c)
    • Add cargo machete CI job including exclusions (abd0724)
    • Merge pull request #​2442 from GitoxideLabs/report (f7277f3)

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.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 1, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 1, 2026

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, epage, weihanglo

@epage
Copy link
Copy Markdown
Contributor

epage commented Apr 1, 2026

@Byron looks like some of the gix packages are incompatible with each other

@Byron
Copy link
Copy Markdown
Member

Byron commented Apr 2, 2026

@epage I will submit a separate PR with the update in a bit.

@epage
Copy link
Copy Markdown
Contributor

epage commented Apr 2, 2026

Oh, I saw the second type of error but not the first and the second doesn't make it too clear what the problem is.

[1](https://github.com/rust-lang/cargo/actions/runs/23880574540/job/69632759160?pr=16815#step:5:492)
error: Please set either the `sha1` or the `sha256` feature flag
  --> /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gix-hash-0.23.0/src/lib.rs:13:1
   |
13 | compile_error!("Please set either the `sha1` or the `sha256` feature flag");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0665]: `#[derive(Default)]` on enum with no `#[default]`
  --> /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gix-hash-0.23.0/src/lib.rs:74:10
   |
74 |   #[derive(Default, PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
   |            ^^^^^^^
...
77 | / pub enum Kind {
78 | |     /// The SHA1 hash with 160 bits.
79 | |     #[cfg_attr(feature = "sha1", default)]
80 | |     #[cfg(feature = "sha1")]
...  |
85 | |     Sha256 = 2,
86 | | }
   | |_- this enum needs a unit variant marked with `#[default]`

@Byron, the changelog for gix does not call out this breaking change

@epage epage mentioned this pull request Apr 2, 2026
github-merge-queue bot pushed a commit that referenced this pull request Apr 2, 2026
### What does this PR try to resolve?

I've left gix to #16815.

### How to test and review this PR?
@renovate renovate bot force-pushed the renovate/gix-0.x branch from 275efc8 to 71d45aa Compare April 2, 2026 14:08
github-merge-queue bot pushed a commit that referenced this pull request Apr 2, 2026
## Summary
- update `gix` from `0.80.0` to `0.81.0`
- add the explicit `sha1` feature now required when using `gix` with
`default-features = false`
- refresh the lockfile for the updated `gix` dependency family

Closes #16815

## Why
This updates Cargo to the latest published `gix` release while
preserving the existing feature set. The extra `sha1` feature keeps the
previous hash behavior intact after the `gix 0.81.0` feature layout
change.

## Validation
- `cargo check -p cargo`
- `cargo test -p cargo --no-run`
- `cargo check --workspace --all-targets`

## Notes
This change was driven by Codex at Byron's request so CI could run on
the updated dependency set. Byron still needs to review the patch before
anything is merged.
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 2, 2026
@renovate renovate bot deleted the renovate/gix-0.x branch April 2, 2026 23:51
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.

3 participants