From 9bd1ba2f5c85a61bc3d0100f5daa098259bc6aa9 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Mon, 2 Jun 2025 09:35:39 -0500 Subject: [PATCH] commands: update deprecation notice for keep-storage The `--keep-storage` flag was changed to `--reserved-space`. Before it was changed to that name, it was changed to `--max-storage`. This flag never made it into a release as the name was changed before release, but the update to the flag in buildx forgot to update the deprecation notice. Signed-off-by: Jonathan A. Sternberg --- commands/prune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/prune.go b/commands/prune.go index 87f1184b6..d739fac5b 100644 --- a/commands/prune.go +++ b/commands/prune.go @@ -182,7 +182,7 @@ func pruneCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { flags.BoolVarP(&options.force, "force", "f", false, "Do not prompt for confirmation") flags.Var(&options.reservedSpace, "keep-storage", "Amount of disk space to keep for cache") - flags.MarkDeprecated("keep-storage", "keep-storage flag has been changed to max-storage") + flags.MarkDeprecated("keep-storage", "keep-storage flag has been changed to reserved-space") return cmd }