complete the migration from thiserror to gix-error - #2847
Sebastian Thiel (Byron) wants to merge 51 commits into
Conversation
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
|
Did the comparison. Three things, plus one offer. 1. 2. 3. I've written a guard for that: Also: in On the comparison: I audited every There's more from the sweep — a per-type verdict on all 42 types #2716 left concrete, an erasure order for the E0119 chains, and a list of dropped |
|
Thanks Amey Pawar (@ameyypawar), while noting that I find no pleasure in reading these AI generated blobs of text. My main gripe is that it's a bot speaking through you, so unless you say you produced this text by hand or think you could produce it, disclosure is the way to go. I recommend adding a few lines of yourself on top giving me your verdict, no matter what it is (i.e. something like "this looks reasonable to me, and I spot-checked one of these claims"), followed, by a separator to clearly mark the AI blob. Thanks again. |
b7df324 to
92a3276
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
92a3276 to
240b509
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
240b509 to
6b1745e
Compare
|
Re-checked after your push. Four things I'd still look at. The message loss bothers me most; on the security tests I'd rather have your call than mine. The sweep and this write-up are both AI-produced — I took help of AI tools throughout. I checked the two source arms and the Messages dropped: 53 sites, 50 distinct. Worst: 17 assertions weakened. Two matter: the three erased-API asserts in
Dead branches: Also: ~31 double-wraps left after the 19 you removed — a floor, counted from monomorphised instantiations rather than grep, so I can pull the list if useful. And |
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
6b1745e to
153109c
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
153109c to
1ab89b7
Compare
1ab89b7 to
e9f189c
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
|
Thanks Amey Pawar (@ameyypawar). This is an interesting experiment as you essentially take the role of a reviewer, while my agent double-checks and fixes. And all that without any human review, so I am already very curious on how the actual review can be done efficiently. |
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
e9f189c to
2d9f5d9
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
2d9f5d9 to
5647e7f
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
5647e7f to
04a637e
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
04a637e to
2224378
Compare
CI exposed three remaining migration adaptations: gix-shallow doctests could not convert Exn through Box<dyn Error>, the ein init journey snapshots still expected the removed enum message, and lint rejected two mechanical expressions. Convert Exn explicitly in the doctest, update both init snapshots, and apply the two lint-preserving rewrites. Observed in test-doc, test-journey, and lint on PR #2847.
<!-- Byron --> rubberstamp
<!-- Byron --> rubberstamp, but looked at it more to understand why it's more code. Answer: downstream relies on better error classification. However, I think this can also be reduced a bit.
<!-- Byron --> rubberstamp But looked into it more to see why it has so much more code. The simple answer is that it basically doesn't use `gix-error`, but writes error types manually. This needs rework.
<!-- Byron --> rubberstamp, but it needs some more work to not repeat `can_retry()`
<!-- Byron --> rubberstamp
<!-- Byron --> rubberstamp <!-- agent --> Keep the original `TryReserveError` inside the `OutOfMemory` I/O error so structured classification can distinguish allocator failure without treating malformed stream metadata as corruption.
<!-- Byron -->
rubberstamp
<!-- agent -->
The crate-by-crate migration retained operation-specific error aliases to
limit downstream churn. With the migration complete, those names only hide
the shared error types and keep otherwise empty API namespaces alive.
Use the underlying `gix_error` types directly throughout the workspace,
including indirect aliases, renamed exports, test helpers, and the URL fuzz
target. Remove namespaces and files that only held forwarding aliases, and
update documentation and migration guidance to use the canonical types.
Adjust the source locations recorded in error snapshots after deleting the
alias declarations.
Keep `gix::{Error, Exn}` and `gix::error` as the central facade, along with
unrenamed canonical re-exports, required associated types, concrete errors,
and aliases that add structure. Preserve each `Exn` parameter, conditional
error alternative, error message, and source chain. Include all downstream
adaptations in this breaking change so the stack remains buildable.
<!-- Byron --> rubberstamp <!-- agent --> Replace classification-only downcasts with semantic predicates for retryability, missing resources, invalid input, corruption, and resource exhaustion. Use borrowed probable-cause inspection where callers only need the underlying error, removing temporary ownership conversions.
<!-- Byron --> rubberstamp <!-- agent --> The central `gix::Error` already implements the conversions used by `?`. Remove redundant `map_err(Exn::into_error)` and equivalent `Error::from` calls, including conversions inside context closures, while retaining the context itself and explicit conversions at returned-result boundaries.
<!-- Byron --> rubberstamp <!-- agent --> `ResultExt` already accepts exceptions directly. Remove five erasures in pack generation and merge paths that immediately add context, and avoid converting the committer exception to `Error` before adding clone context. Preserve each context message and final erasure where the callback needs it.
<!-- Byron --> rubberstamp <!-- agent --> Inspect retry policies directly on `Exn` in `gix-index`, `gix-transport`, and `gix-worktree-stream` tests. Remove conversions to `gix_error::Error` that were only needed to inspect these exceptions.
<!-- agent --> `std::io::Error::source()` skips its custom payload, hiding classification markers, custom error types, and branches of a nested `gix_error::Error`. Retain the payload while walking native sources so borrowed retry policies, exception traversal, and both porcelain error modes see the complete cause. Document how custom errors expose their immediate cause and classification markers. Cover every classification, nested branches, and concrete payload downcasts, and update diagnostic snapshots for the retained I/O payload. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
…nversion <!-- agent --> Expose the shared `ValidationError` marker from reference, tag, submodule, and path-component errors without changing their variants or input details. This lets callers distinguish invalid names from absent references through `gix::Error`, including optional reference lookups. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
<!-- Byron --> rubberstamp, checked diff <!-- agent --> Expose a `ValidationError` source from command-line parser errors so their classification survives raising and conversion to `gix_error::Error`. Keep the original parser variant available for callers that need details. Regression cases cover missing quotes, dangling escapes, and assignment-only input. All command tests and doctests pass in both error modes; focused Clippy also passes.
<!-- Byron --> stamp of approval, after looking at the diff and description. <!-- agent --> Forwarding to the inner I/O error's `source()` hides the I/O error itself, preventing callers from inspecting its kind through a custom persistence error. Return the immediate cause so generic error classification can find it, while preserving the handle needed to recover from failed persistence. Extend both writable-file and marker recovery tests to check the source. All tempfile tests and doctests pass.
Admittedly, I was mostly checking the public API, thinking that it's most certainly useful and overally, having lazy iterators for everything is a step in the right direction. This wasn't a crazily detailed review in the interest of time. <!-- agent --> Error inspection rebuilt the entire error graph before returning its first item, so even a root match visited unrelated sources and allocated storage. Use a shared iterator that expands each node only when another item is needed, preserving breadth-first order, concrete types, and caller locations in both error representations. Expose `classify(&error)` for custom borrowed errors, and share classification predicates with `Error` and `Exn`. The shared traversal and predicate definitions remove more code than the borrowed API adds. Keep `probable_cause()` unchanged. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
<!-- Byron --> rubber stamp, but checked the diff and asked for fixes to use gix_error::TestResult instead, which for the sake of simplicity is going to happen in a future commit. <!-- agent --> Merge-base traversal replaced object-store and decoding errors with a static message. Missing objects, retryable I/O failures, and custom backend errors therefore lost their causes and classifications at the revision boundary. Return `Exn<Message>` and raise graph insertion context around the original failure. Remove the forwarding `Error` alias and `Simple` type, and adapt the porcelain API to return `gix::Error`. The regression reproduces the lost backend cause before the fix and verifies its concrete I/O kind, missing-resource classification, and retry policy after conversion. All 113 revision tests and the porcelain revision tests pass; `gix` and `gix-merge` compile with the changed signature.
<!-- Byron --> rubber stamp, checked diff <!-- agent --> Curl replaces upload and download callback failures with generic transfer errors. Keep the original I/O error alongside curl's diagnostic so custom retry policies and other classifications remain inspectable after conversion to `gix::Error`. Clear the saved callback failure between transfers. Also retain the integer parser's cause when a virtual-host port is invalid. Both conversions previously discarded their sources in `map_err()`.
<!-- Byron --> rubber stamp, looked at diff <!-- agent --> Writing to a byte slice may succeed with a short write. Delta application ignored that byte count, so oversized copy and insert instructions silently truncated their output instead of reporting corrupt data. Split off an output slice of exactly the required size before copying. This also removes two mappings of I/O failures that slice writes cannot produce. A regression covers both copy and insert instructions; all `gix-pack` tests pass.
Looked at this in detail to understand how error handling improvements were made. It all makes sense, and teaches me to... not ignore or skip over errors, ever, it's basically a bug unless there is a test that proves it's not a bug. <!-- agent --> Fetch ref updates discarded commit decoding and traversal setup errors, treating any such failure as permission to force the update. A malformed local or remote commit could therefore overwrite a ref without a force refspec. Traversal errors were also ignored when looking for the ancestor. Propagate those failures with their original causes and context. Check object kinds explicitly to retain the existing behavior for non-commit targets without mistaking corruption for an object-kind mismatch. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
<!-- Byron --> Rubber stamp, looked at diff. This is a cleanup commit. There is going to be considerable cleanup done later as well. <!-- agent --> Parsers and adapters discarded encoding, integer, date, signature, and object-access failures when replacing them with context. Preserve their concrete causes so classification and downcasting keep working after conversion to `gix::Error` or an I/O error. Return `Exn` from fallible path, command-line, gitdir, and pack-entry conversions where necessary, and adapt their consumers in the same change. Packed-ref and reflog errors retain their parser sources and input details; reflog recovery reports the actual recovery failure. Loose-object verification now propagates lookup and enumeration failures instead of treating every lookup error as retryable or silently skipping failed enumeration. Remove unnecessary UTF-8 conversions for ASCII suffixes and check span bounds before narrowing. Parsers that only return `()` explicitly destructure it. No production `map_err()` closure still discards a wildcard-bound error. Also preserve causes in formatting-only CLI and commit-graph adapters, where stringification previously lost checksum corruption classifications.
This is just for convenience, as I can never remember. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
<!-- agent --> Callers can enrich errors with named values they already possess without introducing a custom payload type. `Metadata` keeps a message and an ordered dictionary of typed scalar values, including lossless bytes and native paths. `Error::metadata()` and `Exn::metadata()` iterate separate contexts through existing error traversal, preserving original causes and classifications. Recovery continues to use classifications and concrete domain errors. Document metadata keys on each function that directly returns them. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
…y signals <!-- Byron --> Took a closer look over about 40% of the commit, skimmed/skipped the rest it. So not a complete rubber stamp. Later-on, a lot of these explicit downcasts should be turned into quick classification checks. <!-- agent --> Return canonical `Exn` errors from reference operations and `gix::Error` at porcelain boundaries. Preserve native parser, filesystem, lock and custom name-conversion sources instead of rewrapping them in operation-specific enums. Use documented `Metadata` dictionaries for diagnostic paths, reference names, input bytes and positions. Keep concrete signals for absent references, malformed loose references, stale expected values, existing references and missing committer identity. These support GitButler-style recovery without string matching; stale reference values still require reconciliation before retrying. Fetch only treats an absent referent as unborn, propagating malformed referents and read failures. Remove empty error namespaces and duplicate conversions along with their workspace callers. Preserve unterminated packed input and count peeled lines when reporting iterator positions.
<!-- Byron --> looked at the diff in detail, but went through quickly. Enough to give it my name, but really barely so. Some refactoring done as well, but nothing major. <!-- agent --> Return canonical `Exn` errors for loose and dynamic object lookup, alternate resolution, prefix lookup and integrity verification. Preserve original I/O, decoder, allocation, persistence and custom reader sources instead of forwarding them through operation-specific error enums. Use documented scalar `Metadata` contexts for native paths, object IDs, sizes, pack counts and recursion limits. Keep `alternate::Cycle` with its discovered directory chain, and preserve explicit retryability for interrupted verification or concurrent disk changes. An absent delta base remains not found, while a recursion limit alone implies neither absence nor corruption. Empty loose files are now classified as corruption. Remove empty error namespaces and redundant conversions in porcelain and CLI callers. Keep the genuine I/O boundary for store initialization and pack loading, using the existing adapter to retain both the I/O kind and the complete cause. Replace wrapper-construction tests with actual custom-reader, malformed-object, missing-delta and depth-limit failures. Validate metadata and classifications after conversion, including native path values and retained cycle details.
<!-- agent --> Complete error snapshots expose useful context and causes, but temporary paths, dynamically assigned ports, object IDs, and platform-specific I/O messages make their output unstable. Add `redact_debug_snapshot()` to apply explicit replacements, reuse object-ID normalization, and render OS errors by their portable `ErrorKind`. Handle plain and debug-escaped Windows paths while retaining meaningful suffixes and unrelated backslashes. Return an owned `Debug` value so `insta` displays the diagnostic without additional quoting or newline escaping. Cover redaction, object identity, and OS error formatting, and convert the environment, SBOM argument, and Rust fixture error assertions to complete inline snapshots. The helper is available before downstream diagnostic snapshot migrations need it. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
<!-- Byron --> I refackiewed gix-error with the usual care, and skimmed through all the downstream changes, rubber-stamping it. Definitely cleaned up a few bits, like config-key related error handling, and error related types. <!-- agent --> A single failure could require separate errors for its message, category, and diagnostic values. Classification wrappers could obscure the concrete cause, while cause-selection heuristics could choose a different sibling after adding context or flattening an exception tree. Represent each failure with one diagnostic and preserve its actual causal structure. Make `Message` the shared diagnostic type, with a message, optional `Class`, and named `MetadataValue`s. Classified constructors and the `with_class()` and `with()` builders attach categories and details without extra error layers. Plain messages and string conversions remain unclassified. `Metadata` is now the value dictionary; `Exn::metadata()` and `Error::metadata()` yield only non-empty dictionaries in traversal order, keeping each context separate and preserving bytes, paths, and numeric types. Introduce `ClassificationMarker` to classify existing concrete errors or provide classification-only sources. Classification still inspects these markers, while diagnostic traversal, downcasts, cause selection, and reports skip them and retain their real descendants. Preserve concrete I/O errors and their original kinds for recovery decisions. Give `Frame`, `Exn`, and `Error` the same `probable_cause()` policy: follow the unique causal path to a leaf or the first diagnostic branch, retaining the aggregate instead of choosing an arbitrary sibling. Include native sources, I/O payloads, nested errors, and explicitly raised children in both tree and chain representations. Preserve caller locations through transparent markers, avoid duplicate native causes in reports, and honor alternate `TestError` formatting. Marker-only errors retain a classification fallback. Add `ExnResult<T = (), E = exn::Untyped>` and `ExnMessageResult<T = ()>`, re-export them from `gix`, and adopt them throughout the workspace. Keep callback bounds erased and preserve concrete error types where callers need their payloads. Group supporting classification and display types in `gix_error::types`, and frame inspection and erasure in `gix_error::exn`. Migrate constructors, signatures, and recovery checks together. Replace the `gix::config::key::Error` family with ordinary diagnostics and central `gix::Error` results. Provide `config::key::error()` and `error_with_value()` for `key`, optional `environment_override`, and optional `input` metadata. Retain parser causes, rejected numeric values, accepted special values, and configuration leniency. Collapse artificial error layers elsewhere while preserving concrete failures and partial outcomes. Make complete diagnostics reviewable through inline `insta` snapshots, retaining assertions for classifications, retry policies, concrete causes, and stored data. Use the shared snapshot redaction helper for unstable paths, ports, object IDs, and platform-specific OS errors. Update migration guidance, examples, and CLI snapshots, and use static X.509 assertion messages to avoid dumping verifier identities and raw output. BREAKING CHANGE: replace `ValidationError`, `CorruptionError`, `NotFoundError`, `ResourceExhaustionError`, and `RetryableError` with `Message` diagnostics or transparent `ClassificationMarker`s. The former `Metadata` error becomes a dictionary, `Value` becomes `MetadataValue`, and `Something` is removed. Access offending input through named metadata. Import `Frame` and `Untyped` from `exn`, and classification/display helpers from `types`. Replace free `can_retry()` and `can_retry_lenient()` calls with methods on `classify(error)`. Configuration error aliases are removed; diagnostic traversal omits markers, metadata iteration skips empty maps, and probable-cause selection stops at the first diagnostic branch. Recorded validation includes 3,988 workspace tests excluding `gix-tix`, 2,277 SHA-256 fixture tests, minimal `gix`, blocking and async networking, curl and reqwest, both error representations, doctests, feature builds, and Clippy. Windows-only tests were not executed. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com> Co-authored-by: Byron <sebastian.thiel@icloud.com>
<!-- agent --> Keep Rust security findings focused on production code by excluding `examples/`, `tests/`, `fuzz/`, and `benches/` throughout the workspace. Scope `paths-ignore` to the Rust job, whose `build-mode: none` supports these filters. Inline unit tests remain included. Validated YAML parsing, recursive path coverage, and `git diff --check`. Assisted-by: GPT 6.0 Co-authored-by: GPT 6.0 <codex@openai.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The merge fuzz harness now suppresses unrelated not-found failures, potentially hiding object-lookup regressions.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
What changed in this PR
Migrates the workspace from thiserror enums to gix-error, standardizing error propagation, classification, metadata, and gix::Error boundaries.
Changes:
- Replaces crate-specific error enums with
ExnResult,ExnMessageResult, andgix::Error. - Adds retry, validation, corruption, not-found, resource-exhaustion, metadata, and probable-cause support.
- Updates consumers, tests, snapshots, examples, fuzzers, and manifests.
| File | Description |
|---|---|
gix-error/** |
Expands core error classification, metadata, chaining, and tests. |
gix/** |
Adopts unified public gix::Error APIs and updates tests/examples. |
gix-actor/**, gix-archive/**, gix-attributes/**, gix-blame/**, gix-chunk/** |
Migrates error consumers and tests. |
gix-command/**, gix-commitgraph/**, gix-config-value/**, gix-config/** |
Replaces custom errors and adds classified diagnostics. |
gix-credentials/**, gix-date/**, gix-diff/**, gix-dir/**, gix-discover/** |
Migrates APIs, examples, and tests. |
gix-features/**, gix-filter/**, gix-fs/**, gix-fsck/**, gix-hash/** |
Standardizes error results and assertions. |
gix-ignore/**, gix-index/**, gix-lock/**, gix-mailmap/**, gix-merge/** |
Migrates errors and classification handling. |
gix-negotiate/**, gix-note/**, gix-object/**, gix-odb/**, gix-pack/** |
Preserves context and classifications across object operations. |
gix-packetline/**, gix-path/**, gix-pathspec/**, gix-prompt/** |
Replaces typed enums with gix-error results. |
gix-protocol/**, gix-ref/**, gix-refspec/**, gix-revision/**, gix-revwalk/** |
Migrates protocol, reference, and revision failures. |
gix-shallow/**, gix-status/**, gix-submodule/**, gix-tempfile/**, gix-tix/** |
Updates error propagation and recovery logic. |
gix-transport/**, gix-traverse/**, gix-url/**, gix-validate/**, gix-worktree*/**, gix-zlib/** |
Adds standardized classifications and result aliases. |
gitoxide-core/**, src/**, tests/it/**, tests/tools/** |
Adapts binaries and integration utilities to unified errors. |
tests/snapshots/** |
Updates expected user-facing error chains. |
Cargo.toml, .gitignore, .github/workflows/codeql.yml |
Updates linting, editor sharing, and CodeQL configuration. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -289,7 +289,7 @@ fn fuzz(data: &[u8]) { | |||
| Ok(outcome) => outcome, | |||
| // Resolving a binary add/add conflict with its absent ancestor cannot | |||
| // produce a resource. This is a valid configuration-dependent error. | |||
| Err(gix_merge::tree::Error::MergeResourceNotFound) => continue, | |||
| Err(err) if err.is_not_found() => continue, | |||

Tasks
gixto reduce all the overhead.not_found()support forgix-referrors.can_retry()duplication ingix-transportFollowUp
Review these custom error types:
I’ll check the remaining custom error definitions and distinguish
thiserrortypes from hand-written ones.31 custom error types remain across 17 crates in the current working tree, including uncommitted changes.
This counts production types implementing
std::error::Error, excludinggix-erroritself, tests, examples, and aliases.gix-refgixgix-transportgix-validategix-configThe single-type crates are
gix-command,gix-diff,gix-fs,gix-index,gix-lock,gix-odb,gix-pack,gix-packetline,gix-refspec,gix-sec,gix-tempfile, andgix-utils.Zero first-party
thiserrorderives or direct dependencies remain; it still appears transitively inCargo.lock.Some remaining types support recovery or downcasting, so 31 remaining doesn’t necessarily mean 31 should be removed.
Everything below this line was generated by Codex GPT-5.
Created by Codex on behalf of Byron. Byron will review before this is ready to merge.
Reported issue
Refs #2351
Summary
thiserroruse from workspace crates and exposes top-level failures throughgix::Errorgix-erroranyhowin the binaries and forwards thegix-error/anyhowfeature throughgixValidation
cargo check --workspace --all-targetscargo test -p gix-errorcargo test -p gix-error --features auto-chain-error --test auto-chain-errorcargo test -p gix --test gix revision::spec::