You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile.tmpl
+22-18Lines changed: 22 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
# http://github.com/tinkerbell/lint-install
4
4
5
5
{{ if .Go }}GOLINT_VERSION ?= v1.42.0{{ end }}
6
-
{{ if .Dockerfile}}HADOLINT_VERSION ?= v2.7.0{{ end }}
7
-
{{ if .Shell}}SHELLCHECK_VERSION ?= v0.7.2{{ end }}
6
+
{{- if .Dockerfile}}HADOLINT_VERSION ?= v2.7.0{{ end }}
7
+
{{- if .Shell}}SHELLCHECK_VERSION ?= v0.7.2{{ end }}
8
8
LINT_OS := $(shell uname)
9
9
LINT_ARCH := $(shell uname -m)
10
10
11
-
# shellcheck and hadolint don't have arm64 native binaries: use Rosetta instead
11
+
# shellcheck and hadolint lack arm64 native binaries: rely on x86-64 emulation
12
12
ifeq ($(LINT_OS),Darwin)
13
13
ifeq ($(LINT_ARCH),arm64)
14
14
LINT_ARCH=x86_64
@@ -18,25 +18,29 @@ endif
18
18
{{ if .Shell }}LINT_LOWER_OS = $(shell echo $(LINT_OS) | tr '[:upper:]' '[:lower:]'){{ end }}
19
19
{{ if .Go }}GOLINT_CONFIG:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))/.golangci.yml{{ end }}
20
20
21
-
lint: {{ if .Shell }}out/linters/shellcheck-$(SHELLCHECK_VERSION)/shellcheck {{ end }}{{ if .Dockerfile }}out/linters/hadolint-$(HADOLINT_VERSION) {{ end }}{{ if .Go}}out/linters/golangci-lint-$(GOLINT_VERSION){{ end }}
21
+
lint: {{ if .Shell }}out/linters/shellcheck-$(SHELLCHECK_VERSION)-$(LINT_ARCH)/shellcheck {{ end }}{{ if .Dockerfile }}out/linters/hadolint-$(HADOLINT_VERSION)-$(LINT_ARCH) {{ end }}{{ if .Go}}out/linters/golangci-lint-$(GOLINT_VERSION)-$(LINT_ARCH){{ end }}
0 commit comments