Skip to content

ci: make CI green - #24

Merged
scarmuega merged 3 commits into
mainfrom
ci/coderabbit-fixes
Aug 7, 2026
Merged

ci: make CI green#24
scarmuega merged 3 commits into
mainfrom
ci/coderabbit-fixes

Conversation

@scarmuega

@scarmuega scarmuega commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Fixes formatting and clippy issues surfaced by the new CI workflow introduced in the previous hardening PR.

  • Run cargo fmt to fix formatting
  • Fix or allow pre-existing clippy warnings (dead_code, unused_variables, result_large_err, etc.) to unblock the -D warnings gate
  • Address CodeRabbit review findings from the previous PR:
    • permissions: contents: read (least-privilege GITHUB_TOKEN)
    • persist-credentials: false on all checkout steps
    • concurrency group to cancel superseded CI runs
    • --tag v{{version}} instead of --latest in pre-release-hook

scarmuega added 2 commits July 8, 2026 10:04
- Add permissions: contents: read (least-privilege GITHUB_TOKEN)
- Add persist-credentials: false to all checkout steps
- Add concurrency group to cancel superseded CI runs
- Fix pre-release-hook: use --tag v{{version}} instead of --latest
  (--latest resolves the previous tag since the new tag doesn't exist
  yet during cargo-release's pre-release-hook)
- Run cargo fmt to fix formatting
- Fix or allow pre-existing clippy warnings (dead_code, unused_variables,
  result_large_err, etc.) to unblock -D warnings gate
@scarmuega scarmuega changed the title ci: address CodeRabbit review findings ci: make CI green Jul 8, 2026
set_fixed_channel called std::os::unix::fs::symlink unconditionally, so the
crate failed to compile on windows-latest (E0433: could not find `unix` in
`os`). Gate the call per platform and use symlink_dir on Windows.

Windows models a symlink-to-directory as a directory entry, so the removal
of an existing link needs remove_dir rather than remove_file — otherwise the
path would compile but fail at runtime when switching channels.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@scarmuega
scarmuega merged commit 6b90aad into main Aug 7, 2026
17 of 22 checks passed
@scarmuega
scarmuega deleted the ci/coderabbit-fixes branch August 7, 2026 10:53
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