From 757ec5dbf6c6bcb7278fdc8d2d26397d32da1d78 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 13 Oct 2022 08:02:26 -0400 Subject: [PATCH] proxy: Bump semver for OpenImageOptional I should have done this in the previous commit, it's how clients can discover that we have the API. Signed-off-by: Colin Walters --- cmd/skopeo/proxy.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/skopeo/proxy.go b/cmd/skopeo/proxy.go index b3b5597d..dd0cf123 100644 --- a/cmd/skopeo/proxy.go +++ b/cmd/skopeo/proxy.go @@ -91,7 +91,8 @@ import ( // 0.2.1: Initial version // 0.2.2: Added support for fetching image configuration as OCI // 0.2.3: Added GetFullConfig -const protocolVersion = "0.2.3" +// 0.2.4: Added OpenImageOptional +const protocolVersion = "0.2.4" // maxMsgSize is the current limit on a packet size. // Note that all non-metadata (i.e. payload data) is sent over a pipe. @@ -739,6 +740,8 @@ func (h *proxyHandler) processRequest(readBytes []byte) (rb replyBuf, terminate rb, err = h.FinishPipe(req.Args) case "Shutdown": terminate = true + // NOTE: If you add a method here, you should very likely be bumping the + // const protocolVersion above. default: err = fmt.Errorf("unknown method: %s", req.Method) }