Labels: bug, ci
Crate: workspace
Description
examples/all-findings/Cargo.toml has no [workspace] table, and the root Cargo.toml's members/exclude lists neither includes nor excludes examples/all-findings (only test-contracts is excluded). Since the crate sits inside the workspace root's directory tree, Cargo treats it as an orphaned workspace member and refuses to build it:
$ cd examples/all-findings && cargo check
error: current package believes it's in a workspace when it's not:
current: .../examples/all-findings/Cargo.toml
workspace: .../Cargo.toml
this may be fixable by adding `examples/all-findings` to the `workspace.members` array of the manifest located at: .../Cargo.toml
Alternatively, to keep it out of the workspace, add the package to the `workspace.exclude` array, or add an empty `[workspace]` table to the package's manifest.
This is a distinct, more fundamental problem than issue #308 (which is about the example no longer triggering every check) — the crate can't even be type-checked, by anyone, in any state, until this is fixed. .github/workflows/ci.yml never touches examples/ at all, so this has never been caught by CI.
Acceptance Criteria
Difficulty: beginner
Labels: bug, ci
Crate: workspace
Description
examples/all-findings/Cargo.tomlhas no[workspace]table, and the rootCargo.toml'smembers/excludelists neither includes nor excludesexamples/all-findings(onlytest-contractsis excluded). Since the crate sits inside the workspace root's directory tree, Cargo treats it as an orphaned workspace member and refuses to build it:This is a distinct, more fundamental problem than issue #308 (which is about the example no longer triggering every check) — the crate can't even be type-checked, by anyone, in any state, until this is fixed.
.github/workflows/ci.ymlnever touchesexamples/at all, so this has never been caught by CI.Acceptance Criteria
examples/all-findingsto the rootCargo.toml'sexcludelist (matching thetest-contractstreatment), or add an empty[workspace]table toexamples/all-findings/Cargo.tomlto opt it out explicitly.cargo checkagainstexamples/all-findings, similar to the existing per-fixture loop fortest-contracts/*/.Difficulty: beginner