deep-copy icon indicating copy to clipboard operation
deep-copy copied to clipboard

Binary doesn't compile with go 1.25

Open sreeram77 opened this issue 4 months ago • 0 comments

deep-copy does not compile with go 1.25.

$ go version
go version go1.25.0 darwin/arm64

$ go build main.go
# golang.org/x/tools/internal/tokeninternal
../../../../pkg/mod/golang.org/x/[email protected]/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)

This is because of a breaking change in golang.org/x/[email protected] which is used in deep-copy.

The fix is to update golang.org/x/tools and preferably go.

sreeram77 avatar Aug 27 '25 11:08 sreeram77