Skip to content

Commit 20d166f

Browse files
author
Roy Lin
committed
fix(release): enforce crate dependency order
1 parent faa97e6 commit 20d166f

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,14 @@ jobs:
738738
for attempt in $(seq 1 18); do
739739
status="$(crate_status "$crate")"
740740
if [ "$status" = "200" ]; then
741-
echo "Verified $crate@$VERSION on crates.io"
742-
return 0
741+
if cargo info "$crate@$VERSION" \
742+
--registry crates-io >/dev/null 2>&1; then
743+
echo "Verified $crate@$VERSION in the crates.io index"
744+
return 0
745+
fi
746+
echo "$crate@$VERSION is visible through the API; waiting for the index"
743747
fi
744-
if [ "$status" != "404" ]; then
748+
if [ "$status" != "200" ] && [ "$status" != "404" ]; then
745749
echo "::error::crates.io returned HTTP $status while verifying $crate@$VERSION"
746750
return 1
747751
fi

src/compat/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ description = "Protocol compatibility service and contract fixtures for A3S Box"
99

1010
[dependencies]
1111
a3s-acl = { workspace = true }
12-
a3s-box-core = { version = "3.0", path = "../core" }
13-
a3s-box-runtime = { version = "3.0", path = "../runtime", default-features = false, features = ["vm"] }
12+
a3s-box-core = { version = "3.1", path = "../core" }
13+
a3s-box-runtime = { version = "3.1", path = "../runtime", default-features = false, features = ["vm"] }
1414
anyhow = { workspace = true }
1515
async-trait = { workspace = true }
1616
axum = { workspace = true }

src/netproxy/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name = "a3s_box_netproxy"
1212
path = "src/lib.rs"
1313

1414
[target.'cfg(target_os = "macos")'.dependencies]
15-
a3s-box-core = { version = "3.0", path = "../core" }
15+
a3s-box-core = { version = "3.1", path = "../core" }
1616
libc = { workspace = true }
1717
tracing = { workspace = true }
1818
smoltcp = { version = "0.11", default-features = false, features = [
@@ -28,7 +28,7 @@ smoltcp = { version = "0.11", default-features = false, features = [
2828
[target.'cfg(all(unix, not(target_os = "macos")))'.dev-dependencies]
2929
# The implementation is shipped only on macOS, but its Unix datagram, packet,
3030
# and proxy state tests also run on Linux CI and production validation hosts.
31-
a3s-box-core = { version = "3.0", path = "../core" }
31+
a3s-box-core = { version = "3.1", path = "../core" }
3232
libc = { workspace = true }
3333
tracing = { workspace = true }
3434
smoltcp = { version = "0.11", default-features = false, features = [

src/runtime/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ operator = []
2626
build = []
2727

2828
[dependencies]
29-
a3s-box-core = { version = "3.0", path = "../core" }
29+
a3s-box-core = { version = "3.1", path = "../core" }
3030
a3s-transport = { workspace = true }
3131

3232
# Async runtime
@@ -90,7 +90,7 @@ prometheus = { workspace = true }
9090

9191
# macOS userspace network proxy (replaces gvproxy)
9292
[target.'cfg(target_os = "macos")'.dependencies]
93-
a3s-box-netproxy = { version = "3.0", path = "../netproxy" }
93+
a3s-box-netproxy = { version = "3.1", path = "../netproxy" }
9494

9595
[target.'cfg(windows)'.dependencies]
9696
windows-sys = { version = "0.48", features = [

src/sdk/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ default = []
1212
pipeline-cli = []
1313

1414
[dependencies]
15-
a3s-box-core = { version = "3.0", path = "../core" }
16-
a3s-box-runtime = { version = "3.0", path = "../runtime" }
15+
a3s-box-core = { version = "3.1", path = "../core" }
16+
a3s-box-runtime = { version = "3.1", path = "../runtime" }
1717
base64 = { workspace = true }
1818
chrono = { workspace = true }
1919
libc = { workspace = true }

0 commit comments

Comments
 (0)