Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ serial_test = "4"
# (42 native wheels/release, ~12 MB each) to 7, and future Python releases need
# no rebuild. `generate-import-lib` kept for the Windows abi3 import lib.
# See knowledge/runtimes/python-package.md § abi3.
pyo3 = { version = "0.29", features = ["extension-module", "generate-import-lib", "abi3-py39"] }
pyo3 = { version = "0.30", features = ["extension-module", "generate-import-lib", "abi3-py39"] }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P0] pyo3 is bumped to 0.30 but pyo3-async-runtimes stays at 0.29, and the two must move in lockstep. pyo3-async-runtimes 0.29.x is built against pyo3 0.29 (pre-bump Cargo.lock resolves exactly one pyo3 0.29.3), so after this change the graph contains pyo3 0.29 and pyo3 0.30 side by side — and types from different versions of the same crate never unify. crates/bashkit-python inherits both from the workspace (crates/bashkit-python/Cargo.toml:20,44) and mixes them directly: async_bridge.rs:114-115 passes py: Python<'_> (now 0.30) into pyo3_async_runtimes::generic::get_current_locals, and lib.rs:83,94 aliases TaskLocals as CallerLoopLocals used with 0.30 PyObject/PyResult values. That is an E0308-style type mismatch and the crate will not compile. Fix: bump pyo3-async-runtimes to a 0.30-based release in the same change, or hold this bump until such a release exists.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] The root Cargo.lock was not regenerated for this manifest change: it still pins pyo3 0.29.3 (verified in the head snapshot) and is not among the PR's changed files, even though the sibling random-fs and hyperlight lockfiles were updated. CI runs several cargo ... --locked steps (e.g. .github/workflows/ci.yml:429,432 plus cargo vet --locked), which fail when the tracked lockfile is out of date with the workspace manifests. Fix: re-resolve and commit the updated root lockfile (cargo update -p pyo3 / cargo check to refresh) — after resolving the P0 above, since a correct resolve is only possible once the companion crate is aligned.

pyo3-async-runtimes = { version = "0.29", features = ["tokio-runtime"] }

# JavaScript/Node.js bindings (NAPI-RS)
Expand Down
77 changes: 64 additions & 13 deletions crates/bashkit-python/test-fixtures/random-fs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bashkit-python/test-fixtures/random-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ crate-type = ["cdylib"]

[dependencies]
bashkit = { path = "../../../bashkit", features = ["interop"] }
pyo3 = { version = "0.29.0", features = ["extension-module"] }
pyo3 = { version = "0.30.1", features = ["extension-module"] }
36 changes: 18 additions & 18 deletions examples/hyperlight/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/hyperlight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crate-type = ["cdylib"]

[dependencies]
bashkit = { path = "../../crates/bashkit", default-features = false, features = ["jq"] }
wit-bindgen = "0.62"
wit-bindgen = "0.63"
futures-util = { version = "0.3", default-features = false }
getrandom = "0.4"

Expand Down
Loading