Update to Go 1.20. Closes #2185

This commit is contained in:
Gabe Kangas 2023-03-24 12:50:52 -07:00
parent 00e0ce47a0
commit 24c51c831e
No known key found for this signature in database
GPG key ID: 4345B2060657F330
7 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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']

2
go.mod
View file

@ -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