(cmd *cobra.Command, args []string)
| 272 | } |
| 273 | |
| 274 | func buildAction(cmd *cobra.Command, args []string) error { |
| 275 | options, err := processBuildCommandFlag(cmd, args) |
| 276 | if err != nil { |
| 277 | return err |
| 278 | } |
| 279 | |
| 280 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address) |
| 281 | if err != nil { |
| 282 | return err |
| 283 | } |
| 284 | defer cancel() |
| 285 | |
| 286 | return builder.Build(ctx, client, options) |
| 287 | } |
| 288 | |
| 289 | // canonicalizeAttest is from https://github.com/docker/buildx/blob/v0.12/util/buildflags/attests.go##L13-L21 |
| 290 | func canonicalizeAttest(attestType string, in string) string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…