From 8f24c58f4d431e05acfd364f0aa218601c07c703 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Wed, 31 May 2023 13:40:58 +0200 Subject: [PATCH 1/2] Fix typo in commands/build.go and docs/reference/buildx_build.md `Shortand` -> `Shorthand` Signed-off-by: Ben Peachey --- commands/build.go | 2 +- docs/reference/buildx_build.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/build.go b/commands/build.go index f575f91e..869095c9 100644 --- a/commands/build.go +++ b/commands/build.go @@ -500,7 +500,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command { flags.StringArrayVar(&options.attests, "attest", []string{}, `Attestation parameters (format: "type=sbom,generator=image")`) flags.StringVar(&options.sbom, "sbom", "", `Shorthand for "--attest=type=sbom"`) - flags.StringVar(&options.provenance, "provenance", "", `Shortand for "--attest=type=provenance"`) + flags.StringVar(&options.provenance, "provenance", "", `Shorthand for "--attest=type=provenance"`) if isExperimental() { flags.StringVar(&invokeFlag, "invoke", "", "Invoke a command after the build [experimental]") diff --git a/docs/reference/buildx_build.md b/docs/reference/buildx_build.md index d3dac8d5..0e10db70 100644 --- a/docs/reference/buildx_build.md +++ b/docs/reference/buildx_build.md @@ -38,7 +38,7 @@ Start a build | [`--platform`](#platform) | `stringArray` | | Set target platform for build | | `--print` | `string` | | Print result of information request (e.g., outline, targets) [experimental] | | [`--progress`](#progress) | `string` | `auto` | Set type of progress output (`auto`, `plain`, `tty`). Use plain to show container output | -| [`--provenance`](#provenance) | `string` | | Shortand for `--attest=type=provenance` | +| [`--provenance`](#provenance) | `string` | | Shorthand for `--attest=type=provenance` | | `--pull` | | | Always attempt to pull all referenced images | | [`--push`](#push) | | | Shorthand for `--output=type=registry` | | `-q`, `--quiet` | | | Suppress the build output and print image ID on success | From eaba4fa9e68b94df0f372a0ed38b72d84fb53181 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Tue, 6 Jun 2023 21:43:41 +0200 Subject: [PATCH 2/2] Update docs with result from `make docs` command. Signed-off-by: Ben Peachey --- docs/reference/buildx_build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/buildx_build.md b/docs/reference/buildx_build.md index 0e10db70..e3dd0c05 100644 --- a/docs/reference/buildx_build.md +++ b/docs/reference/buildx_build.md @@ -38,7 +38,7 @@ Start a build | [`--platform`](#platform) | `stringArray` | | Set target platform for build | | `--print` | `string` | | Print result of information request (e.g., outline, targets) [experimental] | | [`--progress`](#progress) | `string` | `auto` | Set type of progress output (`auto`, `plain`, `tty`). Use plain to show container output | -| [`--provenance`](#provenance) | `string` | | Shorthand for `--attest=type=provenance` | +| [`--provenance`](#provenance) | `string` | | Shorthand for `--attest=type=provenance` | | `--pull` | | | Always attempt to pull all referenced images | | [`--push`](#push) | | | Shorthand for `--output=type=registry` | | `-q`, `--quiet` | | | Suppress the build output and print image ID on success |