@@ -487,7 +487,8 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
487487 flags .StringArrayVar (& options .platforms , "platform" , platformsDefault , "Set target platform for build" )
488488
489489 if isExperimental () {
490- flags .StringVar (& options .printFunc , "print" , "" , "Print result of information request (e.g., outline, targets) [experimental]" )
490+ flags .StringVar (& options .printFunc , "print" , "" , "Print result of information request (e.g., outline, targets)" )
491+ flags .SetAnnotation ("print" , "experimentalCLI" , nil )
491492 }
492493
493494 flags .BoolVar (& options .exportPush , "push" , false , `Shorthand for "--output=type=registry"` )
@@ -514,10 +515,14 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
514515 flags .StringVar (& options .provenance , "provenance" , "" , `Shorthand for "--attest=type=provenance"` )
515516
516517 if isExperimental () {
517- flags .StringVar (& invokeFlag , "invoke" , "" , "Invoke a command after the build [experimental]" )
518- flags .StringVar (& options .Root , "root" , "" , "Specify root directory of server to connect [experimental]" )
519- flags .BoolVar (& options .Detach , "detach" , false , "Detach buildx server (supported only on linux) [experimental]" )
520- flags .StringVar (& options .ServerConfig , "server-config" , "" , "Specify buildx server config file (used only when launching new server) [experimental]" )
518+ flags .StringVar (& invokeFlag , "invoke" , "" , "Invoke a command after the build" )
519+ flags .SetAnnotation ("invoke" , "experimentalCLI" , nil )
520+ flags .StringVar (& options .Root , "root" , "" , "Specify root directory of server to connect" )
521+ flags .SetAnnotation ("root" , "experimentalCLI" , nil )
522+ flags .BoolVar (& options .Detach , "detach" , false , "Detach buildx server (supported only on linux)" )
523+ flags .SetAnnotation ("detach" , "experimentalCLI" , nil )
524+ flags .StringVar (& options .ServerConfig , "server-config" , "" , "Specify buildx server config file (used only when launching new server)" )
525+ flags .SetAnnotation ("server-config" , "experimentalCLI" , nil )
521526 }
522527
523528 // hidden flags
@@ -540,6 +545,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
540545 flags .BoolVar (& ignoreBool , "squash" , false , "Squash newly built layers into a single new layer" )
541546 flags .MarkHidden ("squash" )
542547 flags .SetAnnotation ("squash" , "flag-warn" , []string {"experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency." })
548+ flags .SetAnnotation ("squash" , "experimentalCLI" , nil )
543549
544550 flags .StringVarP (& ignore , "memory" , "m" , "" , "Memory limit" )
545551 flags .MarkHidden ("memory" )
0 commit comments