Bug Description
Originally reported at pydantic/jiter#196
From debugging, I think what happens is:
rewrite_cargo_toml removes workspace crates which are not included in the sdist (in jiter case, a dev tool fuzz)
- the
Cargo.lock still contains metadata about this crate
It might be that running cargo metadata inside the sdist working dir will be good enough to invite cargo to fixup the Cargo.lock? That might be a good sanity check anyway... 🤔
Your maturin version (maturin --version)
1.8.3
Your Python version (python -V)
n/a
Your pip version (pip -V)
n/a
What bindings you're using
None
Does cargo build work?
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Steps to Reproduce
- Run
maturin sdist inside jiter repository at crates/jiter-python subdirectory.
cd to the target/wheels directory (will be at the workspace root)
- Unzip the sdist
cd into the sdist
cargo build --locked
Bug Description
Originally reported at pydantic/jiter#196
From debugging, I think what happens is:
rewrite_cargo_tomlremoves workspace crates which are not included in the sdist (injitercase, a dev toolfuzz)Cargo.lockstill contains metadata about this crateIt might be that running
cargo metadatainside the sdist working dir will be good enough to invite cargo to fixup theCargo.lock? That might be a good sanity check anyway... 🤔Your maturin version (
maturin --version)1.8.3
Your Python version (
python -V)n/a
Your pip version (
pip -V)n/a
What bindings you're using
None
Does
cargo buildwork?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/)?Steps to Reproduce
maturin sdistinsidejiterrepository atcrates/jiter-pythonsubdirectory.cdto thetarget/wheelsdirectory (will be at the workspace root)cdinto the sdistcargo build --locked