Skip to content

Commit df7b13e

Browse files
Merge pull request #338 from MichaelEischer/bump-go1.23
Bump minimum Go version to 1.23
2 parents 2b6f0b3 + 2d3e020 commit df7b13e

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,30 @@ permissions:
1313
contents: read
1414

1515
env:
16-
latest_go: "1.23.x"
16+
latest_go: "1.24.x"
1717
GO111MODULE: on
1818

1919
jobs:
2020
test:
2121
strategy:
2222
matrix:
23-
go:
24-
- 1.23.x
25-
- 1.22.x
26-
runs-on: ubuntu-latest
27-
name: Go ${{ matrix.go }}
23+
include:
24+
- job_name: Linux
25+
go: 1.24.x
26+
os: ubuntu-latest
27+
check_changelog: true
28+
29+
- job_name: Linux (race)
30+
go: 1.24.x
31+
os: ubuntu-latest
32+
test_opts: "-race"
33+
34+
- job_name: Linux
35+
go: 1.23.x
36+
os: ubuntu-latest
37+
38+
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
39+
runs-on: ${{ matrix.os }}
2840

2941
env:
3042
GOPROXY: https://proxy.golang.org
@@ -46,7 +58,7 @@ jobs:
4658
4759
- name: Run local Tests
4860
run: |
49-
go test ./...
61+
go test -cover ${{matrix.test_opts}} ./...
5062
5163
- name: Check changelog files with calens
5264
run: |
@@ -55,6 +67,7 @@ jobs:
5567
5668
echo "check changelog files"
5769
calens
70+
if: matrix.check_changelog
5871

5972
lint:
6073
name: lint
@@ -76,7 +89,7 @@ jobs:
7689
uses: golangci/golangci-lint-action@v6
7790
with:
7891
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
79-
version: v1.63.4
92+
version: v1.64.8
8093
args: --verbose --timeout 5m
8194

8295
# only run golangci-lint for pull requests, otherwise ALL hints get

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Rest Server is a high performance HTTP server that implements restic's [REST bac
1111

1212
## Requirements
1313

14-
Rest Server requires Go 1.22 or higher to build. The only tested compiler is the official Go compiler.
14+
Rest Server requires Go 1.23 or higher to build. The only tested compiler is the official Go compiler.
1515

1616
The required version of restic backup client to use with `rest-server` is [v0.7.1](https://github.com/restic/restic/releases/tag/v0.7.1) or higher.
1717

build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var config = Config{
5858
Namespace: "github.com/restic/rest-server", // subdir of GOPATH, e.g. "github.com/foo/bar"
5959
Main: "github.com/restic/rest-server/cmd/rest-server", // package name for the main package
6060
Tests: []string{"./..."}, // tests to run
61-
MinVersion: GoVersion{Major: 1, Minor: 22, Patch: 0}, // minimum Go version supported
61+
MinVersion: GoVersion{Major: 1, Minor: 23, Patch: 0}, // minimum Go version supported
6262
}
6363

6464
// Config configures the build.

changelog/unreleased/pull-322

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Change: Update dependencies and require Go 1.22 or newer
1+
Change: Update dependencies and require Go 1.23 or newer
22

3-
We have updated all dependencies. Since some libraries require newer Go standard
4-
library features, support for Go 1.18 to 1.21 has been dropped, which means
5-
that rest-server now requires at least Go 1.22 to build.
3+
We have updated all dependencies. Rest-server now requires Go 1.23 or newer to build.
64

7-
This also disables support for TLS versions older than TLS 1.2.
5+
This also disables support for TLS versions older than TLS 1.2. On Windows,
6+
rest-server now requires at least Windows 10 or Windows Server 2016. On macOS,
7+
rest-server now requires at least macOS 11 Big Sur.
88

99
https://github.com/restic/rest-server/pull/322
10+
https://github.com/restic/rest-server/pull/338

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/restic/rest-server
22

3-
go 1.22
3+
go 1.23.0
44

55
require (
66
github.com/coreos/go-systemd/v22 v22.5.0

0 commit comments

Comments
 (0)