Avoid using the -mod flag on CI

This commit is contained in:
Miguel de la Cruz 2023-08-03 12:51:56 +02:00
parent 88792f13f5
commit b56cc0d5dd

View file

@ -3,7 +3,7 @@ image: golang:1.17-buster
fmt: fmt:
stage: lint stage: lint
script: script:
- go fmt -mod=vendor ./... - go fmt ./...
- 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: