The slim rust:1-bookworm image ships without rustfmt/clippy, so `cargo fmt --check` and `cargo clippy` failed. Install them in the ephemeral job container before the checks (no host install). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+5
@@ -16,6 +16,11 @@ jobs:
|
|||||||
- name: Hent koden
|
- name: Hent koden
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Verktøykjede-komponenter
|
||||||
|
# rust-avbildet er slankt og har ikke rustfmt/clippy med; legg dem til
|
||||||
|
# i den efemere containeren (ingen installasjon på verten).
|
||||||
|
run: rustup component add rustfmt clippy
|
||||||
|
|
||||||
- name: Formatering
|
- name: Formatering
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user