From fc65d71df2c95105d02316f369837a84fa4df0cb Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 14 Mar 2019 15:31:10 +0100 Subject: [PATCH] build: fix build DIR -t TAG accept also the order "build DIR -t TAG" Closes: https://github.com/containers/libpod/issues/2636 Signed-off-by: Giuseppe Scrivano --- cmd/podman/build.go | 2 +- test/test_podman_build.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/podman/build.go b/cmd/podman/build.go index 72d78aff98..f0a67791a0 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -52,7 +52,7 @@ func init() { buildCommand.SetHelpTemplate(HelpTemplate()) buildCommand.SetUsageTemplate(UsageTemplate()) flags := buildCommand.Flags() - flags.SetInterspersed(false) + flags.SetInterspersed(true) budFlags := buildahcli.GetBudFlags(&budFlagsValues) flag := budFlags.Lookup("pull") diff --git a/test/test_podman_build.sh b/test/test_podman_build.sh index 9faefc78a2..39f1e784dd 100644 --- a/test/test_podman_build.sh +++ b/test/test_podman_build.sh @@ -33,6 +33,13 @@ echo ######################################################## podman images -q +echo ######################################################## +echo test "build directory before other options create a tag" +echo ######################################################## +TARGET=tagged-image +podman build $HOME/test/build/from-scratch --quiet=True -t $TARGET +podman images | grep tagged-image + echo ######################################################## echo test "build-preserve-subvolumes" echo ########################################################