Skip to content

"cannot use limit (variable of type int64) as *int64 value in assignment" on v1.3.0 #800

@zeylos

Description

@zeylos

Hello,

I encountered an error during go build on generate/generate.go while upgrading to runtime-spec v1.3.0

go build -o ./bla .
# github.com/opencontainers/runtime-tools/generate
../../../go/pkg/mod/github.com/opencontainers/runtime-tools@v0.9.1-0.20250523060157-0ea5ed0382a2/generate/generate.go:973:40: cannot use limit (variable of type int64) as *int64 value in assignment
go version
go version go1.25.4 linux/amd64
## go.mod
go 1.25.4

require (
	github.com/containers/podman/v5 v5.7.0
	github.com/opencontainers/runtime-spec v1.3.0
	github.com/spf13/cobra v1.10.1
	github.com/spf13/viper v1.21.0
	github.com/vishvananda/netns v0.0.5
)

Not sure what's going on ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions