podman build --remote URI Dockerfile shoud not be treated as file

Podman build --remote is translating https://path as if it was a file
path. This change will leave it as a URL so it can be parsed on the
server side.

Fixed: https://github.com/containers/podman/issues/20475

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-10-24 20:15:47 -04:00
parent 4f6a8f0d50
commit a1577ec7b0
3 changed files with 18 additions and 1 deletions

View File

@@ -1135,6 +1135,12 @@ EOF
run_podman rmi -f build_test
}
@test "podman build --file=https" {
run_podman build -t build_test --file=https://raw.githubusercontent.com/containers/podman/main/test/build/from-scratch/Dockerfile $PODMAN_TMPDIR
run_podman rmi -f build_test
}
function teardown() {
# A timeout or other error in 'build' can leave behind stale images
# that podman can't even see and which will cascade into subsequent