Skip to content

Binary doesn't compile with go 1.25 #45

@sreeram77

Description

@sreeram77

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/tools@v0.25.0/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/tools@v0.25.0 which is used in deep-copy.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions