From 7f2adb2df2cf7b4ca845d37d340985232f3048fe Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 22 Dec 2023 14:15:46 +0100 Subject: [PATCH] Bump required Go version to 1.20 --- .github/workflows/ci.yml | 4 ++-- CHANGELOG.md | 2 ++ build.js | 6 +++--- docs/development/advanced-build.md | 2 +- go.mod | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9201c06..4d81061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: - macos-13 - ubuntu-20.04 - ubuntu-22.04 - go-version: [1.18] - node-version: [16] + go-version: [ 1.21 ] + node-version: [ 16 ] runs-on: ${{ matrix.platform }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a82af4..8cd696d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## [Unreleased] +* Bumped minimum reqiured Go version from 1.18 to 1.20. + New features: * Added log view (#53, #54). diff --git a/build.js b/build.js index b8e5081..beac4f5 100755 --- a/build.js +++ b/build.js @@ -50,18 +50,18 @@ function isNullish(val) { return val === undefined || val === null; } -// Check that Go ^1.18 is installed. +// Check that Go ^1.20 is installed. try { const goMinorVersion = /go1\.([0-9][0-9])/.exec( execSync('go version').toString() )?.pop(); - if (isNullish(goMinorVersion) || (parseInt(goMinorVersion) < 18)) { + if (isNullish(goMinorVersion) || (parseInt(goMinorVersion) < 20)) { throw new Error(); } } catch { - missingDependencies.push({ name: 'Go ^1.18 ^16', url: 'https://go.dev/doc/install' }); + missingDependencies.push({ name: 'Go ^1.20', url: 'https://go.dev/doc/install' }); } // Check that Node.js ^16 is installed. diff --git a/docs/development/advanced-build.md b/docs/development/advanced-build.md index 987561a..878555b 100644 --- a/docs/development/advanced-build.md +++ b/docs/development/advanced-build.md @@ -8,7 +8,7 @@ If you just want to install Rolens, please refer to the [installation document]( ## Prerequisites -Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.18. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.18.2`. +Rolens is written in Go, so you should download the Go compiler from [the download page](https://go.dev/dl/). The minimum version required is 1.20. You can confirm whether it's installed correctly by running `go version` and checking that it outputs something similar to `go1.20.4` or higher. Furthermore, you need to have [Wails ^3.1](https://wails.io/docs/gettingstarted/installation) installed: `go install github.com/wailsapp/wails/v2/cmd/wails@latest`. Wails may have platform-specific dependencies; you can consult [`wails doctor`](https://wails.io/docs/reference/cli#doctor) to find out what dependencies Wails needs and how to install them. diff --git a/go.mod b/go.mod index e620295..4041cf3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/garraflavatra/rolens -go 1.18 +go 1.20 require github.com/wailsapp/wails/v2 v2.3.1