Skip to content

Commit 7d14c80

Browse files
authored
build: push go requirement to 1.26.2 (#27843)
We already build Nomad with 1.26.2 and incoming CT release pushes go version in its go.mod to 1.26.2. Since Nomad is not a dependency for any other project than nomad-pack, I see no reason why we wouldn't push our go.mod up to comply, especially since the new CT release contains vulnerability patches and fixes for Nomad.
1 parent ed37a83 commit 7d14c80

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

client/allocdir/alloc_dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ func (a *AllocDir) ReadAt(path string, offset int64) (io.ReadCloser, error) {
487487
return nil, err
488488
}
489489
if _, err := f.Seek(offset, 0); err != nil {
490-
return nil, fmt.Errorf("can't seek to offset %q: %w", offset, err)
490+
return nil, fmt.Errorf("can't seek to offset %d: %w", offset, err)
491491
}
492492
return f, nil
493493
}

client/allocrunner/alloc_runner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ func TestAllocRunner_Lifecycle_Restart(t *testing.T) {
882882
}
883883
if got.Restarts != 0 {
884884
errs = multierror.Append(errs, fmt.Errorf(
885-
"expected no initial restarts of task %q, not %q",
885+
"expected no initial restarts of task %q, not %d",
886886
task, got.Restarts))
887887
}
888888
if expected == "dead" && got.Failed {

command/agent/agent_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,10 @@ func TestAgent_HTTPCheck(t *testing.T) {
969969
t.Errorf("expected normalized addr not %q", check.PortLabel)
970970
}
971971
if expected := 2; check.FailuresBeforeCritical != expected {
972-
t.Errorf("expected failured before critical count not: %q", expected)
972+
t.Errorf("expected failured before critical count not: %d", expected)
973973
}
974974
if expected := 1; check.FailuresBeforeWarning != expected {
975-
t.Errorf("expected failured before warning count not: %q", expected)
975+
t.Errorf("expected failured before warning count not: %d", expected)
976976
}
977977
})
978978

@@ -1043,10 +1043,10 @@ func TestAgent_HTTPCheckPath(t *testing.T) {
10431043
}
10441044
// ensure server failures before critical and warning are set
10451045
if expected := 4; check.FailuresBeforeCritical != expected {
1046-
t.Errorf("expected failured before critical count not: %q", expected)
1046+
t.Errorf("expected failured before critical count not: %d", expected)
10471047
}
10481048
if expected := 3; check.FailuresBeforeWarning != expected {
1049-
t.Errorf("expected failured before warning count not: %q", expected)
1049+
t.Errorf("expected failured before warning count not: %d", expected)
10501050
}
10511051

10521052
// Assert client check uses /v1/agent/health?type=client

go.mod

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

3-
go 1.25.8
3+
go 1.26.2
44

55
// Pinned dependencies are noted in github.com/hashicorp/nomad/issues/11826.
66
replace (

0 commit comments

Comments
 (0)