cli-plugins/examples/helloworld/main.go cannot build
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- build-system, cli
Research direction
Start with cli-plugins/examples/helloworld/main.go and reproduce the failure using the provided go mod init, go mod tidy, and go build commands. Inspect the dependency errors reported from api/types/swarm/runtime/plugin.pb.go; done means the helloworld example builds successfully from the documented reproduction steps.
Written by the indexing model from the issue text.
Description
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/docker@v28.0.2+incompatible/api/types/swarm/runtime/plugin.pb.go:23:17: undefined: proto.GoGoProtoPackageIsVersion3
/root/go/pkg/mod/github.com/docker/docker@v28.0.2+incompatible/api/types/swarm/runtime/plugin.pb.go:66:38: undefined: proto.InternalMessageInfo
/root/go/pkg/mod/github.com/docker/docker@v28.0.2+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
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 47
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/cli
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
kind/feature status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
acceptance-tests phase-coding schema-coverage testing triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100