From d0e4db27e03ad726cf8f8d4ee8765103883cad71 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 16 Jan 2026 12:40:54 -0800 Subject: [PATCH] commands: remove policy json-schema stub Remove stub for now so we don't ship it in a release. Signed-off-by: Tonis Tiigi --- commands/policy/json_schema.go | 23 ----------------------- commands/policy/root.go | 2 +- docs/reference/buildx_policy.md | 9 ++++----- 3 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 commands/policy/json_schema.go diff --git a/commands/policy/json_schema.go b/commands/policy/json_schema.go deleted file mode 100644 index 8292f9e62..000000000 --- a/commands/policy/json_schema.go +++ /dev/null @@ -1,23 +0,0 @@ -package policy - -import ( - "github.com/pkg/errors" - "github.com/spf13/cobra" -) - -func jsonSchemaCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "json-schema", - Short: "Print policy JSON schema", - Args: cobra.NoArgs, - DisableFlagsInUseLine: true, - RunE: func(cmd *cobra.Command, args []string) error { - return runJSONSchema() - }, - } - return cmd -} - -func runJSONSchema() error { - return errors.New("not implemented") -} diff --git a/commands/policy/root.go b/commands/policy/root.go index 5e04717a2..fa1629982 100644 --- a/commands/policy/root.go +++ b/commands/policy/root.go @@ -18,7 +18,7 @@ func RootCmd(rootcmd *cobra.Command, dockerCli command.Cli, rootOpts RootOptions } cmd.AddCommand( - jsonSchemaCmd(), + // TODO: json-schema command evalCmd(dockerCli, rootOpts), testCmd(dockerCli, rootOpts), ) diff --git a/docs/reference/buildx_policy.md b/docs/reference/buildx_policy.md index 642d1f865..5dda57683 100644 --- a/docs/reference/buildx_policy.md +++ b/docs/reference/buildx_policy.md @@ -5,11 +5,10 @@ Commands for working with build policies ### Subcommands -| Name | Description | -|:----------------------------------------------|:-----------------------------| -| [`eval`](buildx_policy_eval.md) | Evaluate policy for a source | -| [`json-schema`](buildx_policy_json-schema.md) | Print policy JSON schema | -| [`test`](buildx_policy_test.md) | Run policy tests | +| Name | Description | +|:--------------------------------|:-----------------------------| +| [`eval`](buildx_policy_eval.md) | Evaluate policy for a source | +| [`test`](buildx_policy_test.md) | Run policy tests | ### Options