Skip to content

cli-plugins/examples/helloworld/main.go cannot build #5956

@zhangguanzhang

Description

@zhangguanzhang

Description

$ go build -v -o helloworld main.go 
github.com/docker/docker/api/types/swarm/runtime
# github.com/docker/docker/api/types/swarm/runtime
/root/go/pkg/mod/github.com/docker/[email protected]+incompatible/api/types/swarm/runtime/plugin.pb.go:23:17: undefined: proto.GoGoProtoPackageIsVersion3
/root/go/pkg/mod/github.com/docker/[email protected]+incompatible/api/types/swarm/runtime/plugin.pb.go:66:38: undefined: proto.InternalMessageInfo
/root/go/pkg/mod/github.com/docker/[email protected]+incompatible/api/types/swarm/runtime/plugin.pb.go:142:43: undefined: proto.InternalMessageInfo

Reproduce

mkdir -p cli-test
cd cli-test
wget https://raw.githubusercontent.com/docker/cli/refs/heads/master/cli-plugins/examples/helloworld/main.go
go mod init test
go mod tidy
go build main.go

Expected behavior

No response

docker version

no

docker info

no

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions