From e93d8cb6967f314bed1b5e2904234f6aa25a3510 Mon Sep 17 00:00:00 2001 From: naoki kuroda <68233204+nnnkkk7@users.noreply.github.com> Date: Sun, 25 Sep 2022 23:06:50 +0900 Subject: [PATCH] Upgrade go version to 1.19 (#987) * upgrade go version to 1.19 * upgrade go version to 1.19 in dockerfile and test.yml --- .github/workflows/test.yml | 22 +++++++++++----------- Dockerfile | 2 +- go.mod | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f86367f8..23043bf6 100644 --- a/.github/workflows/test.yml +++ b/.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 diff --git a/Dockerfile b/Dockerfile index ee6f6db8..cbee1ad3 100644 --- a/Dockerfile +++ b/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) && \ diff --git a/go.mod b/go.mod index 8e3feb74..036d897f 100644 --- a/go.mod +++ b/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