From d8e017b0220622674b9a89a6f5154e1102702bc2 Mon Sep 17 00:00:00 2001 From: Denis MACHARD <5562930+dmachard@users.noreply.github.com> Date: Wed, 8 Feb 2023 11:43:37 +0100 Subject: [PATCH] Update to support Go 1.20 (#209) * update go.mod * GH actions - go version updated * update golangci-lint * tail collector: os.SEEK_END deprecated * Update DockerFile * Update doc * goreleaser fix --- .github/workflows/goreleaser.yml | 2 +- .goreleaser.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 1912c274..f9cadbac 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.20 + go-version: "1.20" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 diff --git a/.goreleaser.yml b/.goreleaser.yml index 46e5834b..3565559e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,8 @@ +before: + hooks: + - go mod tidy + builds: - env: - CGO_ENABLED=0 @@ -23,12 +27,14 @@ builds: archives: - id: zipformat format: zip + rlcp: true name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' files: - config.yml - id: targzformat format: tar.gz + rlcp: true name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' files: - config.yml