lab test fixtures break workspace parse downstream #307
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Downstream repos (e.g. hero_codescalers) that lock hero_skills at
599114a8and pull it into their workspace fail to parse with:The fixture Cargo.toml at
crates/lab/tests/fixtures/blueprint/service_info_model/Cargo.tomlships with template placeholders that cargo tries to parse as a real package. Either:exclude = ["crates/lab/tests/fixtures"]in rootCargo.toml), ortests/data/).Already fixed in
5ab1541(development) and6763929(main) — both branches now exclude crates/lab/tests/fixtures from the workspace. Downstreams locked at older SHAs (e.g.599114a) need to bump.Reopening: the exclude in hero_skills/Cargo.toml does NOT prevent downstream git-dep consumers from parse-erroring. When a downstream pulls lab as a git dep, cargo scans the extracted repo and chokes on the templated fixture before the workspace exclude is consulted.
Verified after bumping codescalers Cargo.lock to
5ab1541— same parse error against the new SHA path:error: invalid character { in package name: {{ name_kebab }}
--> ~/cargo/git/checkouts/hero_skills-.../5ab1541/crates/lab/tests/fixtures/blueprint/service_info_model/Cargo.toml:2:8
Fix: rename the fixture off Cargo.toml (e.g. Cargo.toml.tmpl) — or relocate fixtures outside any path cargo will scan when resolving git deps.