From 24c51c831eee54259a2b3f0fcfc1c084b775f53a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 24 Mar 2023 12:50:52 -0700 Subject: [PATCH] Update to Go 1.20. Closes #2185 --- .github/workflows/browser-testing.yml | 2 +- .github/workflows/go-lint.yml | 2 +- .github/workflows/go-tests.yaml | 2 +- .github/workflows/hls-tests.yml | 2 +- .github/workflows/screenshots.yml | 2 +- .golangci.yml | 4 ++-- go.mod | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml index 090bd1a76..15ddd6355 100644 --- a/.github/workflows/browser-testing.yml +++ b/.github/workflows/browser-testing.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: '1.18.8' + go-version: '1.20' cache: true - name: Install Google Chrome diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index af4963328..85a75cf83 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: '1.18.8' + go-version: '1.20' cache: true - uses: actions/checkout@v3 - name: golangci-lint diff --git a/.github/workflows/go-tests.yaml b/.github/workflows/go-tests.yaml index 47b5a6cfc..cc619c123 100644 --- a/.github/workflows/go-tests.yaml +++ b/.github/workflows/go-tests.yaml @@ -12,7 +12,7 @@ jobs: test: strategy: matrix: - go-version: [1.18.x, 1.19.x] + go-version: [1.19.x, 1.20.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml index 0e5a043bd..94452c4d4 100644 --- a/.github/workflows/hls-tests.yml +++ b/.github/workflows/hls-tests.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.18.8' + go-version: '1.20' cache: true - name: Cache node modules diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index ad1d2299a..1367f5d26 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.18.8' + go-version: '1.20' cache: true - name: Cache node modules diff --git a/.golangci.yml b/.golangci.yml index 0db1db942..8e49964d4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,7 @@ run: # Define the Go version limit. # Mainly related to generics support in go1.18. # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 - go: '1.18' + go: '1.20' issues: # The linter has a default list of ignorable errors. Turning this on will enable that list. @@ -69,7 +69,7 @@ linters-settings: gosimple: # Select the Go version to target. The default is '1.13'. - go: '1.18' + go: '1.20' # https://staticcheck.io/docs/options#checks checks: ['all'] diff --git a/go.mod b/go.mod index 7a0a0ddfa..a10f48669 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/owncast/owncast -go 1.18 +go 1.20 require ( github.com/aws/aws-sdk-go v1.44.271