Upgrade to Go 1.21 (#2475)

* Upgrade to Go 1.21

* Remove 'replacements' from goreleaser config
This commit is contained in:
Deluan Quintão 2023-08-09 11:39:49 -04:00 committed by GitHub
parent 1b5cefdada
commit f941347cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 16 deletions

View File

@ -4,7 +4,7 @@
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
"args": { "args": {
// Update the VARIANT arg to pick a version of Go: 1, 1.15, 1.14 // Update the VARIANT arg to pick a version of Go: 1, 1.15, 1.14
"VARIANT": "1.20", "VARIANT": "1.21",
// Options // Options
"INSTALL_NODE": "true", "INSTALL_NODE": "true",
"NODE_VERSION": "v18" "NODE_VERSION": "v18"

View File

@ -16,10 +16,10 @@ jobs:
- name: Install taglib - name: Install taglib
run: sudo apt-get install libtag1-dev run: sudo apt-get install libtag1-dev
- name: Set up Go 1.20 - name: Set up Go 1.21
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: 1.20.x go-version: 1.21.x
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go_version: [1.20.x,1.19.x] go_version: [1.21.x,1.20.x]
steps: steps:
- name: Install taglib - name: Install taglib
run: sudo apt-get install libtag1-dev run: sudo apt-get install libtag1-dev
@ -126,7 +126,7 @@ jobs:
path: ui/build path: ui/build
- name: Config /github/workspace folder as trusted - name: Config /github/workspace folder as trusted
uses: docker://deluan/ci-goreleaser:1.20.3-1 uses: docker://deluan/ci-goreleaser:1.21.0-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -134,7 +134,7 @@ jobs:
- name: Run GoReleaser - SNAPSHOT - name: Run GoReleaser - SNAPSHOT
if: startsWith(github.ref, 'refs/tags/') != true if: startsWith(github.ref, 'refs/tags/') != true
uses: docker://deluan/ci-goreleaser:1.20.3-1 uses: docker://deluan/ci-goreleaser:1.21.0-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -142,7 +142,7 @@ jobs:
- name: Run GoReleaser - RELEASE - name: Run GoReleaser - RELEASE
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: docker://deluan/ci-goreleaser:1.20.3-1 uses: docker://deluan/ci-goreleaser:1.21.0-1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:

View File

@ -1,5 +1,5 @@
run: run:
go: "1.19" go: "1.20"
linters: linters:
enable: enable:

View File

@ -116,12 +116,6 @@ archives:
- format_overrides: - format_overrides:
- goos: windows - goos: windows
format: zip format: zip
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum: checksum:
name_template: "{{ .ProjectName }}_checksums.txt" name_template: "{{ .ProjectName }}_checksums.txt"

View File

@ -9,7 +9,7 @@ GIT_SHA=source_archive
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD))) GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
endif endif
CI_RELEASER_VERSION=1.20.3-1 ## https://github.com/navidrome/ci-goreleaser CI_RELEASER_VERSION=1.21.0-1 ## https://github.com/navidrome/ci-goreleaser
setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment
@echo Downloading Node dependencies... @echo Downloading Node dependencies...

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/navidrome/navidrome module github.com/navidrome/navidrome
go 1.19 go 1.20
require ( require (
code.cloudfoundry.org/go-diodes v0.0.0-20190809170250-f77fb823c7ee code.cloudfoundry.org/go-diodes v0.0.0-20190809170250-f77fb823c7ee