Files
docker-cli/cli/command/image
Sebastiaan van Stijn 052b4086b9 cli/command/image: remove use of docker/docker/pkg/urlutil
pkg/urlutil (despite its poorly chosen name) is not really intended as a
generic utility to handle URLs, and should only be used by the builder to
handle (remote) build contexts.

The `IsURL()` function only does a very rudimentary check for `http(s)://`
prefixes, without any other validation, but due to its name may give
incorrect expectations.

As we're deprecating this package for uses other than for build-contexts,
this patch replaces this instance of the utility for a local function.

While changing, also cleaned up some intermediate variables, and made
the logic slightly more descriptive.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-29 12:21:53 +02:00
..
2022-03-26 20:21:00 +01:00
2018-05-11 16:49:43 -07:00
2018-12-10 16:48:59 +00:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00