Add vendor to fmt task

This commit is contained in:
Miguel de la Cruz 2020-04-27 12:29:12 +02:00
parent 14921a0f88
commit 4627bbbcb9

View file

@ -3,7 +3,7 @@ image: golang:1.14-buster
fmt: fmt:
stage: lint stage: lint
script: script:
- go fmt ./... - go fmt -mod=vendor ./...
- if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi - if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi
build: build: