Skip to content

Commit 821858e

Browse files
authored
Make super-linter ARM friendly (#1817)
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 0c26193 commit 821858e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.mise/tasks/lint/super-linter.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ set -euo pipefail
77
# renovate: datasource=docker depName=ghcr.io/super-linter/super-linter
88
SUPER_LINTER_VERSION="v8.3.2@sha256:e9d1895a1bdc1f9d9df41f688b27aa891743f23f9fae0f22a3e25eeda8f102db"
99

10+
# Super-linter doesn't publish ARM64 images, so always use amd64
1011
docker pull --platform linux/amd64 "ghcr.io/super-linter/super-linter:${SUPER_LINTER_VERSION}"
1112

1213
docker run --rm \
14+
--platform linux/amd64 \
1315
-e RUN_LOCAL=true \
1416
-e DEFAULT_BRANCH=main \
1517
--env-file ".github/super-linter.env" \

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ the code.
1919

2020
Run `./mvnw spotless:apply` to format the code (only changed files) before committing.
2121

22+
Or run all the linters:
23+
24+
`mise run lint:super-linter`
25+
2226
## Running Tests
2327

2428
If you're getting errors when running tests:

0 commit comments

Comments
 (0)