Log before building or pushing.

Previously there would be a make "entering directory" hint in the logs, but
with the switch to `linuxkit pkg` that no longer occurs.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-10-10 13:33:10 +01:00
parent 38e48d3bf4
commit 8f1d39cea1
2 changed files with 4 additions and 0 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

@ -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 {