Skip to content

Commit 8ece8a4

Browse files
Fix Cargo.lock mismatch in generated sdist (#235)
1 parent 0fa2970 commit 8ece8a4

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@ jobs:
244244
args: --out dist
245245
rust-toolchain: stable
246246
working-directory: crates/jiter-python
247+
- name: verify sdist lockfile for locked vendoring
248+
run: |
249+
set -euxo pipefail
250+
sdist_path=$(echo crates/jiter-python/dist/*.tar.gz)
251+
sdist_name=$(basename "$sdist_path" .tar.gz)
252+
mkdir sdist-check
253+
tar -xzf "$sdist_path" -C sdist-check
254+
cd "sdist-check/$sdist_name"
255+
cargo vendor --locked > /dev/null
247256
- uses: actions/upload-artifact@v4
248257
with:
249258
name: pypi_files_sdist

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
2-
members = ["crates/jiter", "crates/jiter-python", "crates/fuzz"]
2+
members = ["crates/jiter", "crates/jiter-python"]
3+
exclude = ["crates/fuzz"]
34
resolver = "2"
45

56
[workspace.package]

crates/fuzz/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[package]
22
name = "fuzz"
33
publish = false
4-
version = {workspace = true}
5-
edition = {workspace = true}
6-
authors = {workspace = true}
4+
# Internal-only crate (`publish = false`): keep version decoupled from release crates.
5+
version = "0.0.0"
6+
edition = "2021"
7+
authors = ["Samuel Colvin <samuel@pydantic.dev>"]
78

89
[package.metadata]
910
cargo-fuzz = true

0 commit comments

Comments
 (0)