Skip to content

ci: Resync#61

Merged
cgwalters merged 2 commits intobootc-dev:mainfrom
cgwalters:sync-lint-ci-config
Mar 5, 2026
Merged

ci: Resync#61
cgwalters merged 2 commits intobootc-dev:mainfrom
cgwalters:sync-lint-ci-config

Conversation

@cgwalters
Copy link
Copy Markdown
Collaborator

Goal is re-synchronizing things like lints, semver checks etc across our crates.

Add [lints.rust] and [lints.clippy] sections to Cargo.toml, matching
the lint policy from bootc-dev/bootc. This includes forbidding unsafe_code,
forbidding unused_must_use, denying dead_code, dbg_macro, todo, and
requiring Debug implementations on public types.

The missing_docs lint remains as a crate-level attribute in lib.rs
rather than in Cargo.toml because cargo lints apply to all targets
including examples, which don't need module-level docs.

Also adds a manual Debug implementation for LayerWriter, which was
missing one.

Assisted-by: OpenCode (Claude claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>
Replace the hardcoded ACTIONS_LINTS_TOOLCHAIN pin (1.86.0) with
bootc-dev/actions/setup-rust which uses stable Rust. The pinned
version was causing lint failures on PRs that use features stabilized
after 1.86 (e.g. let chains from 1.87).

Merge the separate tests and linting jobs into a single job that
runs `just lint` and `just test`, keeping CI and local development
in sync. The Justfile prefers nextest when available and falls back
to cargo test otherwise.

Also removes the old coreos/repo-templates header since this repo is
now maintained under bootc-dev, and bumps actions/checkout to v6.

Assisted-by: OpenCode (Claude claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters enabled auto-merge (squash) March 4, 2026 16:31
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request effectively resynchronizes CI-related configurations across crates by introducing new lint rules in Cargo.toml and a comprehensive Justfile for build, test, and lint commands. The added Debug implementation for LayerWriter in src/lib.rs improves debuggability.

Comment thread Justfile
Copy link
Copy Markdown
Contributor

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sane to me.

@cgwalters cgwalters requested a review from ckyrouac March 5, 2026 15:47
@cgwalters cgwalters merged commit ba45721 into bootc-dev:main Mar 5, 2026
4 checks passed
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.

3 participants