mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Merge pull request #2588 from ijc/linuxkit-pkg-logging
linuxkit pkg: Log before building or pushing.
This commit is contained in:
commit
e129b3e37d
@ -27,6 +27,8 @@ func pkgBuild(args []string) {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Building %q\n", p.Tag())
|
||||||
|
|
||||||
var opts []pkglib.BuildOpt
|
var opts []pkglib.BuildOpt
|
||||||
if *force {
|
if *force {
|
||||||
opts = append(opts, pkglib.WithBuildForce())
|
opts = append(opts, pkglib.WithBuildForce())
|
||||||
|
@ -13,7 +13,7 @@ func pkgPush(args []string) {
|
|||||||
flags := flag.NewFlagSet("pkg push", flag.ExitOnError)
|
flags := flag.NewFlagSet("pkg push", flag.ExitOnError)
|
||||||
flags.Usage = func() {
|
flags.Usage = func() {
|
||||||
invoked := filepath.Base(os.Args[0])
|
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, "'path' specifies the path to the package source directory.\n")
|
||||||
fmt.Fprintf(os.Stderr, "\n")
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
flags.PrintDefaults()
|
flags.PrintDefaults()
|
||||||
@ -27,6 +27,8 @@ func pkgPush(args []string) {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("Building and pushing %q\n", p.Tag())
|
||||||
|
|
||||||
var opts []pkglib.BuildOpt
|
var opts []pkglib.BuildOpt
|
||||||
opts = append(opts, pkglib.WithBuildPush())
|
opts = append(opts, pkglib.WithBuildPush())
|
||||||
if *force {
|
if *force {
|
||||||
|
Loading…
Reference in New Issue
Block a user