Skip to content

build: upgrade to Go 1.25.1#26823

Merged
pkazmierczak merged 11 commits intomainfrom
f-go-1.25
Oct 3, 2025
Merged

build: upgrade to Go 1.25.1#26823
pkazmierczak merged 11 commits intomainfrom
f-go-1.25

Conversation

@pkazmierczak
Copy link
Contributor

No description provided.

@pkazmierczak
Copy link
Contributor Author

Requires golang.org/x/tools upgrade in go-msgpack hashicorp/go-msgpack#35

@pkazmierczak
Copy link
Contributor Author

pkazmierczak commented Sep 24, 2025

Requires golang.org/x/tools upgrade in serf: hashicorp/serf#778

Actually not true. As it turns out, we can build with old serf.

@pkazmierczak
Copy link
Contributor Author

I'm confused. make check fails to build dependencies due to:

# golang.org/x/tools/internal/tokeninternal
Error: ../../../go/pkg/mod/golang.org/x/tools@v0.14.0/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)
make: *** [GNUmakefile:144: deps] Error 1

And at the same time, we don't seem to be pulling that as a dependency anywhere!

$ go mod graph | grep tools@v0.14.0
$ go mod graph | grep msgpack/v2@v2.1.2

return empty output.

@pkazmierczak
Copy link
Contributor Author

An update on this: it's not just tools@v0.14.0 that we have to deal with, it's any version of this package until v0.26.0 (see golang/go#74462). So:

$ go mod why -m golang.org/x/tools
# golang.org/x/tools
github.com/hashicorp/nomad/command
github.com/hashicorp/hcl/v2
golang.org/x/tools/cmd/stringer

This means we need to upgrade hcl/v2 to use a more modern version of tools before we can get anywhere. cc @Juanadelacuesta

@tgross
Copy link
Member

tgross commented Sep 29, 2025

This means we need to upgrade hcl/v2 to use a more modern version of tools before we can get anywhere. cc @Juanadelacuesta

Also note that we have a Nomad-specific branch of HCL2

this should eliminate golang.org/x/tools@v0.14.0 and
github.com/hashicorp/go-msgpack/v2 v2.1.2 from our dependency graph
@pkazmierczak
Copy link
Contributor Author

pkazmierczak commented Oct 2, 2025

HCL v2 update draft: hashicorp/hcl#768

Actually not needed. As it turns out, we can build with old hcl.

just to see if it helps as expected
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pkazmierczak pkazmierczak merged commit c723385 into main Oct 3, 2025
38 checks passed
@pkazmierczak pkazmierczak deleted the f-go-1.25 branch October 3, 2025 06:59
@pkazmierczak pkazmierczak added backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/ent/1.9.x+ent labels Oct 3, 2025
@github-actions
Copy link

github-actions bot commented Feb 1, 2026

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants