1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-11-21 14:08:56 +01:00

Bump required Go version to 1.20

This commit is contained in:
Romein van Buren 2023-12-22 14:15:46 +01:00
parent 2040a356fd
commit 7f2adb2df2
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
5 changed files with 9 additions and 7 deletions

View File

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

View File

@ -1,5 +1,7 @@
## [Unreleased]
* Bumped minimum reqiured Go version from 1.18 to 1.20.
New features:
* Added log view (#53, #54).

View File

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

View File

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

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/garraflavatra/rolens
go 1.18
go 1.20
require github.com/wailsapp/wails/v2 v2.3.1