Skip to content

ci: fix first real run — create gen dest dir + Linux overlay dead code#10

Merged
hellno merged 2 commits into
mainfrom
hellno/fix-ci-generate-dest
Jun 11, 2026
Merged

ci: fix first real run — create gen dest dir + Linux overlay dead code#10
hellno merged 2 commits into
mainfrom
hellno/fix-ci-generate-dest

Conversation

@hellno

@hellno hellno commented Jun 11, 2026

Copy link
Copy Markdown
Owner

What & why

The first real CI run (free public runners) surfaced two failures the billing-blocked private CI never caught:

  1. All jobs failed at the generate step (No such file or directory) — cargo-generate's --destination parent must exist; CI never created it. Fix: mkdir -p it first.
  2. Linux --features overlay failed with 12 dead-code errors — the overlay submodules were declared unconditionally but every consumer is #[cfg(target_os = "macos")], so on Linux they compiled unused and clippy -D warnings rejected them. Fix: gate the submodules to macOS (the feature is macOS-only in v1). Pre-existing bug.

Definition of Done

  • macOS verified locally: clippy --features tray,overlay -D warnings clean + 15 overlay tests pass.
  • This PR's own CI run validates Linux + macOS + cargo-deny on the generated project.

hellno added 2 commits June 11, 2026 15:21
cargo-generate's --destination parent directory must already exist; CI never
created it, so the generate step failed with 'No such file or directory' on the
first real public-runner run. Create it with mkdir -p first (all three jobs).
… clean

Every overlay consumer is cfg(target_os=macos), but the submodules were declared unconditionally, so a Linux --features overlay build compiled them with zero users and clippy -D warnings rejected 12 dead-code items. Gate the mods to macOS. macOS still builds + runs all 15 overlay tests; Linux overlay stays a compile-only no-op. Pre-existing since the overlay feature landed; surfaced now that CI runs on Linux for the first time.
@hellno hellno changed the title ci: fix generate step — create $RUNNER_TEMP/gen before rendering ci: fix first real run — create gen dest dir + Linux overlay dead code Jun 11, 2026
@hellno
hellno merged commit 13594eb into main Jun 11, 2026
3 checks passed
@hellno
hellno deleted the hellno/fix-ci-generate-dest branch June 11, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant