Skip to content

Commit ef5af01

Browse files
committed
yamllint: Ensure out/linters dir exists
yammlint install was missing this and would actually fail if only yaml files were detected int the project. Signed-off-by: Manuel Mendez <[email protected]>
1 parent a21adc1 commit ef5af01

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ out/linters/golangci-lint-$(GOLINT_VERSION)-$(LINT_ARCH):
4949
mv out/linters/golangci-lint out/linters/golangci-lint-$(GOLINT_VERSION)-$(LINT_ARCH)
5050

5151
$(YAMLLINT_ROOT)/bin/yamllint:
52+
mkdir -p out/linters
5253
curl -sSfL https://github.com/adrienverge/yamllint/archive/refs/tags/v$(YAMLLINT_VERSION).tar.gz | tar -C out/linters -zxf -
5354
cd $(YAMLLINT_ROOT) && pip3 install . -t dist
5455
# END: lint-install .

Makefile.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ out/linters/golangci-lint-$(GOLINT_VERSION)-$(LINT_ARCH):
5555

5656
{{ if .YAML -}}
5757
$(YAMLLINT_ROOT)/bin/yamllint:
58+
mkdir -p out/linters
5859
curl -sSfL https://github.com/adrienverge/yamllint/archive/refs/tags/v$(YAMLLINT_VERSION).tar.gz | tar -C out/linters -zxf -
5960
cd $(YAMLLINT_ROOT) && pip3 install . -t dist
6061
{{ end -}}

0 commit comments

Comments
 (0)