From 93510a299dbee4a1d16f34b360479810d84aa47c Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 25 Jan 2024 15:58:17 +0100 Subject: [PATCH] bindings: suggest using -tags remote to reduce file size Closes: https://github.com/containers/podman/issues/12548 [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano --- pkg/bindings/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/bindings/README.md b/pkg/bindings/README.md index 55255a22af..b972cc7bca 100644 --- a/pkg/bindings/README.md +++ b/pkg/bindings/README.md @@ -239,3 +239,6 @@ $ You can also verify that the information being passed back and forth is correct by putting with a tool like `socat`, which can dump what the socket is seeing. + +## Reducing Binary Size with "remote" Build Tag +When building a program that uses the Podman Go bindings, you can reduce the binary size by passing the "remote" build tag to the go build command. This tag excludes code related to local Podman operations, which is not needed for applications that only interact with Podman over a network.