Browse Source

build: update golangci (#1829)

Jo 2 năm trước cách đây
mục cha
commit
3f5dffc188
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      .golangci.yml
  2. 2 2
      ci.Dockerfile

+ 1 - 0
.golangci.yml

@@ -79,6 +79,7 @@ linters:
     # - forbidigo
 
 run:
+  go: '1.18'
 
 issues:
   exclude-rules:

+ 2 - 2
ci.Dockerfile

@@ -1,4 +1,4 @@
-FROM docker.io/jguer/yay-builder:latest
+FROM docker.io/heywoodlh/archlinux:latest
 
 ENV GO111MODULE=on
 WORKDIR /app
@@ -7,5 +7,5 @@ COPY go.mod .
 
 RUN pacman -Sy && pacman -S --overwrite=* --noconfirm archlinux-keyring && pacman -Su --overwrite=* --needed --noconfirm go git && \
     rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && \
-    curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.48.0 && \
+    curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 && \
     go mod download