Skip to content

Commit 4a87338

Browse files
committed
build(operator): declare standalone [workspace] so CI cargo check works
The ci.yml `operator` job runs `cargo check` with working-directory operator, but the crate is not listed in the repo-root workspace (members: openab-core, openab-gateway). Cargo then walks up to the root Cargo.toml and errors ("believes it's in a workspace when it's not"). This job only runs when operator/** changes, so it was latent until now. Adding an empty [workspace] table marks operator as its own workspace root, matching how it's built and released standalone (own Cargo.lock).
1 parent 2918717 commit 4a87338

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

operator/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ version = "0.1.0"
44
edition = "2021"
55
description = "CLI provisioner for OAB agents on ECS"
66

7+
# Standalone crate — not part of the repo-root [workspace]. Declaring an empty
8+
# workspace table stops cargo from attaching this crate to the root workspace
9+
# (which lists only crates/openab-core and crates/openab-gateway).
10+
[workspace]
11+
712
[[bin]]
813
name = "oabctl"
914
path = "src/main.rs"

0 commit comments

Comments
 (0)