Skip to content

Commit

Permalink
build: fix build DIR -t TAG
Browse files Browse the repository at this point in the history
accept also the order "build DIR -t TAG"

Closes: containers#2636

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Mar 15, 2019
1 parent 3985985 commit fc65d71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/podman/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
7 changes: 7 additions & 0 deletions test/test_podman_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ########################################################
Expand Down

0 comments on commit fc65d71

Please sign in to comment.