Skip to content

Commit 06244be

Browse files
hbrodinclaude
andauthored
Release v0.4.1 (#61)
Fixes a release-pipeline test bug that prevented v0.4.0's artifacts from publishing: integration-update.sh Test 4 ("dev build refusal") relied on git state to produce a dev binary, which fails when CI runs on a commit tagged v{cargo_version}. Test 4 now sets COOP_FORCE_BUILD_KIND=dev explicitly, mirroring Test 1's =release override. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c6c8d60 commit 06244be

5 files changed

Lines changed: 19 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v0.4.1
4+
5+
Re-release of v0.4.0. The v0.4.0 tag did not produce release artifacts
6+
because `tests/integration-update.sh` Test 4 ("dev build refusal") fails
7+
whenever CI runs on a commit tagged `v{cargo_version}``build.rs`
8+
correctly bakes `COOP_BUILD_KIND=release` for that commit, so the test's
9+
unset-override path produced a release binary instead of a dev one. Test 4
10+
now sets `COOP_FORCE_BUILD_KIND=dev` explicitly, mirroring Test 1's
11+
`=release` override. No functional changes to `coop` itself since v0.4.0.
12+
313
## v0.4.0
414

515
### New features

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coop"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2024"
55
description = "Isolated VM environment for running Claude Code"
66

build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ fn main() {
1919
for path in git_rerun_paths() {
2020
println!("cargo:rerun-if-changed={}", path.display());
2121
}
22-
// Build-time test hook: allows the integration test to produce a "release" binary from
23-
// an untagged branch. Runtime behaviour is unaffected — the override only influences
22+
// Build-time test hook: lets the integration test pin `COOP_BUILD_KIND` to either
23+
// "release" (from an untagged branch) or "dev" (from a tagged commit), independent
24+
// of git state. Runtime behaviour is unaffected — the override only influences
2425
// what build.rs bakes into `COOP_BUILD_KIND`.
2526
println!("cargo:rerun-if-env-changed=COOP_FORCE_BUILD_KIND");
2627

tests/integration-update.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,12 @@ fi
221221
# ── Test 4: dev build refuses to self-update ─────────────────────────────────
222222

223223
echo "==> Building dev binary..."
224+
# Force kind=dev rather than relying on git state. When CI runs on a tag
225+
# matching the Cargo version (the release workflow's normal trigger),
226+
# build.rs correctly bakes kind=release, which would defeat this test.
224227
(
225228
cd "$PROJECT_DIR"
226-
unset COOP_FORCE_BUILD_KIND
227-
cargo build --release --quiet
229+
COOP_FORCE_BUILD_KIND=dev cargo build --release --quiet
228230
)
229231
cp "$PROJECT_DIR/target/release/coop" "$TMPDIR/bin/coop-dev"
230232

0 commit comments

Comments
 (0)