Skip to content

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/[email protected]/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 [email protected]
$ go mod graph | grep msgpack/[email protected]

return empty output.

@pkazmierczak
Copy link
Contributor Author

An update on this: it's not just [email protected] 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/[email protected] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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