Răsfoiți Sursa

Upgrade go version to 1.19 (#987)

* upgrade go version to 1.19

* upgrade go version to 1.19 in dockerfile and test.yml
naoki kuroda 3 ani în urmă
părinte
comite
e93d8cb696
3 a modificat fișierele cu 14 adăugiri și 14 ștergeri
  1. 11 11
      .github/workflows/test.yml
  2. 1 1
      Dockerfile
  3. 2 2
      go.mod

+ 11 - 11
.github/workflows/test.yml

@@ -9,18 +9,18 @@ jobs:
   test:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
+      - uses: actions/checkout@v2
 
-    - name: Set up Go
-      uses: actions/setup-go@v2
-      with:
-        go-version: 1.18
+      - name: Set up Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.19
 
-    - name: Build
-      run: go build -v ./...
+      - name: Build
+        run: go build -v ./...
 
-    - name: Test
-      run: make test
+      - name: Test
+        run: make test
 
-    - name: Validate Config
-      run: cd cmd/generate/config && go run main.go
+      - name: Validate Config
+        run: cd cmd/generate/config && go run main.go

+ 1 - 1
Dockerfile

@@ -1,4 +1,4 @@
-FROM golang:1.18 AS build
+FROM golang:1.19 AS build
 WORKDIR /go/src/github.com/zricethezav/gitleaks
 COPY . .
 RUN VERSION=$(git describe --tags --abbrev=0) && \

+ 2 - 2
go.mod

@@ -1,8 +1,9 @@
 module github.com/zricethezav/gitleaks/v8
 
-go 1.17
+go 1.19
 
 require (
+	github.com/charmbracelet/lipgloss v0.5.0
 	github.com/fatih/semgroup v1.2.0
 	github.com/gitleaks/go-gitdiff v0.8.0
 	github.com/h2non/filetype v1.1.3
@@ -13,7 +14,6 @@ require (
 )
 
 require (
-	github.com/charmbracelet/lipgloss v0.5.0 // indirect
 	github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
 	github.com/mattn/go-isatty v0.0.14 // indirect
 	github.com/mattn/go-runewidth v0.0.13 // indirect