[CI] development red — cargo check fails: planner_admin askama can't find hero_lib templates #23
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_planner#23
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?
CI on
developmentis red (main is green). Failing step: check (cargo check --workspace,.forgejo/workflows/lab-release.yaml).Error:
Root cause: the askama webserver-admin migration set
hero_planner_admin/askama.tomldirsto relative filesystem paths into ahero_libsibling checkout:In CI (and any normal build)
hero_libis a cargo git dependency (under$CARGO_HOME/git/...), NOT a sibling at../../../hero_lib, so askama's compile-time template resolution fails. (Locally it only builds if you happen to havehero_libchecked out as a sibling — which is how it was being built by hand.)Why main is green:
mainpredates the migration — itshero_planner_adminis the old hand-rolledindex.html+main.rs(noaskama.toml, no relative-template dependency).Scope / proper fix: this affects every service using the hero_lifecycle webserver-admin pattern in CI, so the fix likely belongs in hero_lifecycle — make the shared webserver templates resolvable from the git dependency (embed/package them, or resolve via the dep's real path) instead of a hardcoded relative sibling path. Related shared-admin issue: #151 (hero_lib).
Fixed on
developmentin6499ae7— vendored the 3 shared hero_lifecycle partials (hero_head,hero_connection_status,hero_scripts) intohero_planner_admin/templates/parts/and set askamadirs=["templates"], so the crate compiles without a hero_lib sibling checkout (CI resolves hero_lib as a git dependency).Verified two ways: (1)
cargo check --workspaceexits 0 with~/hero/code/hero_libmoved aside (exact CI conditions); (2) CI run #62 ondevelopment= SUCCESS — the prior runs #58–61 all failed at thischeckstep.The proper shared fix (expose templates via cargo
links/DEP_*) is tracked in hero_lib #152; the vendored copies are marked temporary (askama.toml TODO -> #152) and are obsoleted by the Dioxus admin (#18).