From cc9e6a13a2df0db06bf4261e9a23bbd79e17c1d6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 22 Jul 2025 11:37:39 +0200 Subject: [PATCH] api/types/swarm/runtime: remove module path for generating proto It only uses the last element of the import_path to be used as package name (omitting it will pick the name of the `.proto`). Signed-off-by: Sebastiaan van Stijn --- api/types/swarm/runtime/gen.go | 2 +- vendor/github.com/moby/moby/api/types/swarm/runtime/gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/types/swarm/runtime/gen.go b/api/types/swarm/runtime/gen.go index 90e572cf9c..ccfac75c7b 100644 --- a/api/types/swarm/runtime/gen.go +++ b/api/types/swarm/runtime/gen.go @@ -1,3 +1,3 @@ -//go:generate protoc --gogofaster_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto +//go:generate protoc --gogofaster_out=import_path=runtime:. plugin.proto package runtime diff --git a/vendor/github.com/moby/moby/api/types/swarm/runtime/gen.go b/vendor/github.com/moby/moby/api/types/swarm/runtime/gen.go index 90e572cf9c..ccfac75c7b 100644 --- a/vendor/github.com/moby/moby/api/types/swarm/runtime/gen.go +++ b/vendor/github.com/moby/moby/api/types/swarm/runtime/gen.go @@ -1,3 +1,3 @@ -//go:generate protoc --gogofaster_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto +//go:generate protoc --gogofaster_out=import_path=runtime:. plugin.proto package runtime