Skip to content

fix(ci): gate python behind feature flag for crates.io publish#512

Merged
chaliy merged 2 commits intomainfrom
claude/release-patch-version-zVaRR
Mar 4, 2026
Merged

fix(ci): gate python behind feature flag for crates.io publish#512
chaliy merged 2 commits intomainfrom
claude/release-patch-version-zVaRR

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 4, 2026

Summary

  • Fix bashkit-cli v0.1.9 publish to crates.io that failed because builder.python() doesn't exist when bashkit's python feature is stripped (monty is git-only)
  • Move python from hardcoded dependency feature to a bashkit-cli feature flag (default = ["python"])
  • Gate python code with #[cfg(feature = "python")] so it compiles without the feature
  • Update publish workflow to strip the python feature from bashkit-cli before publishing

Test plan

  • cargo build -p bashkit-cli (with python) passes
  • cargo build -p bashkit-cli --no-default-features (without python) passes
  • cargo test -p bashkit-cli --all-features — 9 tests pass
  • cargo test -p bashkit-cli --no-default-features — 7 tests pass (python tests skipped)
  • cargo clippy --all-targets --all-features passes
  • CI green
  • After merge, re-trigger Publish workflow to publish bashkit-cli v0.1.9

claude added 2 commits March 4, 2026 04:04
Allow re-triggering the Publish workflow when bashkit is already
on crates.io but bashkit-cli still needs publishing.

https://claude.ai/code/session_01Jbg7Tuui72STWrJTfCLgWK
… publish

Move python from a hardcoded dependency feature to a bashkit-cli feature
flag (default = on). Code gated with #[cfg(feature = "python")] so
bashkit-cli compiles when bashkit's python feature is unavailable
(monty is git-only, stripped during crates.io publish).

https://claude.ai/code/session_01Jbg7Tuui72STWrJTfCLgWK
@chaliy chaliy merged commit bf336d4 into main Mar 4, 2026
10 checks passed
@chaliy chaliy deleted the claude/release-patch-version-zVaRR branch March 4, 2026 04:26
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.

2 participants