chore: Bump minimal Go version to 1.18

This commit is contained in:
Marius 2023-01-15 21:54:57 +01:00
parent 54c975fb1f
commit 537bdf02c5
4 changed files with 9 additions and 8 deletions

View File

@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.16.x, 1.17.x]
go-version: [1.18.x, 1.19.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
env:

View File

@ -81,10 +81,10 @@ jobs:
uses: actions/checkout@v3
-
name: Install Go 1.17.2
name: Install Go 1.19
uses: actions/setup-go@v3
with:
go-version: '1.17.2'
go-version: '1.19.5'
-
name: Build TUSD

View File

@ -9,10 +9,11 @@ Windows in various formats of the
## Compile from source
The only requirement for building tusd is [Go](http://golang.org/doc/install).
Currently only Go 1.12 and 1.13 is tested and supported and in the future only the two latest
major releases will be supported.
If you meet this criteria, you can clone the git repository, install the remaining
dependencies and build the binary:
We only test and support the [two latest major releases](https://go.dev/dl/) of
Go, although tusd might also run with other versions.
Once a recent Go version is installed, you can clone the git repository, install
the remaining dependencies and build the binary:
```bash
git clone git@github.com:tus/tusd.git

2
go.mod
View File

@ -2,7 +2,7 @@ module github.com/tus/tusd
// Specify the Go version needed for the Heroku deployment
// See https://github.com/heroku/heroku-buildpack-go#go-module-specifics
// +heroku goVersion go1.16
// +heroku goVersion go1.19
go 1.16
require (