From 227dbb78dad63fdcbc33d62aa2b23d139ff77437 Mon Sep 17 00:00:00 2001 From: Marius van Niekerk Date: Tue, 2 Apr 2024 12:42:11 -0400 Subject: [PATCH] Fix earthly lint --- Earthfile | 8 ++++---- protos/cases/types.proto | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Earthfile b/Earthfile index b02063b..e43bdc1 100644 --- a/Earthfile +++ b/Earthfile @@ -1,8 +1,8 @@ VERSION 0.7 -ARG ALPINE_VERSION=3.18 -ARG GO_VERSION=1.21 -ARG LINTER_VERSION=v1.56.2 +ARG --global ALPINE_VERSION=3.18 +ARG --global GO_VERSION=1.21 +ARG --global LINTER_VERSION=v1.57.2 FROM golang:$GO_VERSION-alpine$ALPINE_VERSION WORKDIR /app @@ -20,7 +20,7 @@ lint: # Installs golangci-lint to ./bin RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s $LINTER_VERSION COPY +stage/app . - RUN ./bin/golangci-lint run --skip-dirs=vendor --skip-dirs=./gen/ --deadline=10m --tests=true -E revive \ + RUN ./bin/golangci-lint run --skip-dirs=vendor --skip-dirs=./gen/ --timeout=10m --tests=true -E revive \ -E gosec -E unconvert -E goconst -E gocyclo -E goimports build: diff --git a/protos/cases/types.proto b/protos/cases/types.proto index 64d62da..90ae88a 100644 --- a/protos/cases/types.proto +++ b/protos/cases/types.proto @@ -90,4 +90,4 @@ message TestReservedGoFieldNames { string switch = 24; string type = 25; string var = 26; -} \ No newline at end of file +}