Skip to content

wrapcheck affected by x/tools breakage on go 1.25 #65

@mattsains

Description

@mattsains

See golang/go#74462

on go version go1.25.1 darwin/arm64, installing wrapcheck with go install github.com/tomarrell/wrapcheck/v2/cmd/wrapcheck@latest fails due to the linked issue with x/tools.

The error message is:

$ go install github.com/tomarrell/wrapcheck/v2/cmd/wrapcheck@latest
# golang.org/x/tools/internal/tokeninternal
../go/pkg/mod/golang.org/x/tools@v0.25.0/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)

I was looking at PR #61 and it seems like compatibility might be desired with older golang versions, so perhaps the solution is a new wrapcheck major version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions