build: bump required language level to 1.24, compiler to 1.25 (#10248)
(After 2.0.1)
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
- infra-*
|
- infra-*
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "~1.24.0"
|
GO_VERSION: "~1.25.0"
|
||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
BUILD_USER: docker
|
BUILD_USER: docker
|
||||||
BUILD_HOST: github.syncthing.net
|
BUILD_HOST: github.syncthing.net
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ env:
|
|||||||
# The go version to use for builds. We set check-latest to true when
|
# The go version to use for builds. We set check-latest to true when
|
||||||
# installing, so we get the latest patch version that matches the
|
# installing, so we get the latest patch version that matches the
|
||||||
# expression.
|
# expression.
|
||||||
GO_VERSION: "~1.24.0"
|
GO_VERSION: "~1.25.0"
|
||||||
|
|
||||||
# Optimize compatibility on the slow architectures.
|
# Optimize compatibility on the slow architectures.
|
||||||
GOMIPS: softfloat
|
GOMIPS: softfloat
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
runner: ["windows-latest", "ubuntu-latest", "macos-latest"]
|
runner: ["windows-latest", "ubuntu-latest", "macos-latest"]
|
||||||
# The oldest version in this list should match what we have in our go.mod.
|
# The oldest version in this list should match what we have in our go.mod.
|
||||||
# Variables don't seem to be supported here, or we could have done something nice.
|
# Variables don't seem to be supported here, or we could have done something nice.
|
||||||
go: ["~1.23.0", "~1.24.0"]
|
go: ["~1.24.0", "~1.25.0"]
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set git to use LF
|
- name: Set git to use LF
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module github.com/syncthing/syncthing
|
module github.com/syncthing/syncthing
|
||||||
|
|
||||||
go 1.23.0
|
go 1.24.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/AudriusButkevicius/recli v0.0.7
|
github.com/AudriusButkevicius/recli v0.0.7
|
||||||
|
|||||||
+1
-1
@@ -888,7 +888,7 @@ func TestHtmlFormLogin(t *testing.T) {
|
|||||||
t.Errorf("Unexpected non-200 return code %d at %s", resp.StatusCode, noAuthPath)
|
t.Errorf("Unexpected non-200 return code %d at %s", resp.StatusCode, noAuthPath)
|
||||||
}
|
}
|
||||||
if hasSessionCookie(resp.Cookies()) {
|
if hasSessionCookie(resp.Cookies()) {
|
||||||
t.Errorf("Unexpected session cookie at " + noAuthPath)
|
t.Errorf("Unexpected session cookie at %s", noAuthPath)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1080,7 +1080,7 @@ func TestIssue4901(t *testing.T) {
|
|||||||
|
|
||||||
fd, err := pats.fs.Create(".stignore")
|
fd, err := pats.fs.Create(".stignore")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if _, err := fd.Write([]byte(stignore)); err != nil {
|
if _, err := fd.Write([]byte(stignore)); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -1102,7 +1102,7 @@ func TestIssue4901(t *testing.T) {
|
|||||||
|
|
||||||
fd, err = pats.fs.Create("unicorn-lazor-death")
|
fd, err = pats.fs.Create("unicorn-lazor-death")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err.Error())
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if _, err := fd.Write([]byte(" ")); err != nil {
|
if _, err := fd.Write([]byte(" ")); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user