From 537bdf02c56219f341cecdea3e9035c665222b22 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 15 Jan 2023 21:54:57 +0100 Subject: [PATCH] chore: Bump minimal Go version to 1.18 --- .github/workflows/continuous-integration.yaml | 2 +- .github/workflows/release.yaml | 4 ++-- docs/installation.md | 9 +++++---- go.mod | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index b2fad51..1d55207 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -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: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7649b4f..1b38a32 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/docs/installation.md b/docs/installation.md index a3cce91..e1a3e27 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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 diff --git a/go.mod b/go.mod index 1c5d72d..d022173 100644 --- a/go.mod +++ b/go.mod @@ -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 (