Skip to content

Commit 9db5ddf

Browse files
author
zhouhao
committed
validate: change platform default value
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
1 parent d1751c1 commit 9db5ddf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/oci-runtime-tool/validate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
"runtime"
56

67
rfc2119 "github.com/opencontainers/runtime-tools/error"
78
"github.com/opencontainers/runtime-tools/specerror"
@@ -12,7 +13,7 @@ import (
1213

1314
var bundleValidateFlags = []cli.Flag{
1415
cli.StringFlag{Name: "path", Value: ".", Usage: "path to a bundle"},
15-
cli.StringFlag{Name: "platform", Value: "linux", Usage: "platform of the target bundle (linux, windows, solaris)"},
16+
cli.StringFlag{Name: "platform", Value: runtime.GOOS, Usage: "platform of the target bundle (linux, windows, solaris)"},
1617
}
1718

1819
var bundleValidateCommand = cli.Command{

man/oci-runtime-tool-validate.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Validate an OCI bundle
1919
Path to bundle. The default is current working directory.
2020

2121
**--platform**=PLATFORM
22-
Platform of the target bundle. (linux, windows, solaris) (default: "linux")
22+
Platform of the target bundle. (linux, windows, solaris) The default is host platform.
2323
It will be overwritten by the host platform if the global option '--host-specific' was set.
2424

2525
# SEE ALSO

0 commit comments

Comments
 (0)