bump min golang ver to 1.18 (#2412)

This commit is contained in:
Meisam 2022-12-06 23:31:08 +01:00 committed by GitHub
parent a0933da8d1
commit 1558834df2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View file

@ -20,6 +20,6 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.18.8'
- name: Run Browser tests
run: cd test/automated/browser && ./run.sh

View file

@ -30,6 +30,8 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

View file

@ -27,6 +27,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.17.2'
go-version: '1.18.8'
- name: Run HLS tests
run: cd test/automated/hls && ./run.sh

View file

@ -4,8 +4,8 @@ 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.17
go: '1.17'
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18
go: '1.18'
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.17'
go: '1.18'
# https://staticcheck.io/docs/options#checks
checks: ['all']

View file

@ -89,7 +89,7 @@ The Owncast backend is a service written in Go.
1. Ensure you have pre-requisites installed.
- C compiler, such as [GCC compiler](https://gcc.gnu.org/install/download.html) or a [Musl-compatible compiler](https://musl.libc.org/)
- [ffmpeg](https://ffmpeg.org/download.html)
1. Install the [Go toolchain](https://golang.org/dl/) (1.17 or above).
1. Install the [Go toolchain](https://golang.org/dl/) (1.18 or above).
1. Clone the repo. `git clone https://github.com/owncast/owncast`
1. `go run main.go` will run from source.
1. Visit `http://yourserver:8080` to access the web interface or `http://yourserver:8080/admin` to access the admin.

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/owncast/owncast
go 1.17
go 1.18
require (
github.com/amalfra/etag v1.0.0