Skip to content

Fix Cargo.lock mismatch in generated sdist#235

Merged
davidhewitt merged 1 commit intopydantic:mainfrom
Alex-Izquierdo:fix-cargo
Mar 18, 2026
Merged

Fix Cargo.lock mismatch in generated sdist#235
davidhewitt merged 1 commit intopydantic:mainfrom
Alex-Izquierdo:fix-cargo

Conversation

@Alex-Izquierdo
Copy link
Contributor

The root workspace currently includes crates/fuzz, which is an internal, non-published fuzzing crate.
When building the source distribution, that crate is not included, but the packaged Cargo.lock is still produced from a workspace that includes it. This mismatch causes cargo vendor --locked to fail and breaks offline/reproducible downstream builds.

This PR removes crates/fuzz from the published workspace, makes crates/fuzz explicitly independent from the root workspace, and adds a CI regression check to ensure locked vendoring works against the unpacked sdist.

Fixes #196.

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 11, 2026

Merging this PR will not alter performance

✅ 70 untouched benchmarks


Comparing Alex-Izquierdo:fix-cargo (af932ee) with main (312d268)

Open in CodSpeed

edition = {workspace = true}
authors = {workspace = true}
# Internal-only crate (`publish = false`): keep version decoupled from release crates.
version = "0.0.0"
Copy link
Contributor Author

@Alex-Izquierdo Alex-Izquierdo Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If versioning this crate is essential (I understand it is not) I can create some makefile target to keep it updated and/or some inclusion in pre-commit/ci. For now I prefer to Keep It Simple

Copy link
Collaborator

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@davidhewitt davidhewitt merged commit 8ece8a4 into pydantic:main Mar 18, 2026
26 checks passed
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.

Cargo fails to vendor jiter-0.9.0 without updating the lock file

2 participants