Merge pull request #2588 from ijc/linuxkit-pkg-logging

linuxkit pkg: Log before building or pushing.
This commit is contained in:
Ian Campbell 2017-10-10 17:47:44 +01:00 committed by GitHub
commit e129b3e37d
2 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,8 @@ func pkgBuild(args []string) {
os.Exit(1)
}
fmt.Printf("Building %q\n", p.Tag())
var opts []pkglib.BuildOpt
if *force {
opts = append(opts, pkglib.WithBuildForce())

View File

@ -13,7 +13,7 @@ func pkgPush(args []string) {
flags := flag.NewFlagSet("pkg push", flag.ExitOnError)
flags.Usage = func() {
invoked := filepath.Base(os.Args[0])
fmt.Fprintf(os.Stderr, "USAGE: %s pkg build [options] path\n\n", invoked)
fmt.Fprintf(os.Stderr, "USAGE: %s pkg push [options] path\n\n", invoked)
fmt.Fprintf(os.Stderr, "'path' specifies the path to the package source directory.\n")
fmt.Fprintf(os.Stderr, "\n")
flags.PrintDefaults()
@ -27,6 +27,8 @@ func pkgPush(args []string) {
os.Exit(1)
}
fmt.Printf("Building and pushing %q\n", p.Tag())
var opts []pkglib.BuildOpt
opts = append(opts, pkglib.WithBuildPush())
if *force {