moby/plugin
Laura Brehm f406728e41
plugins: fix panic installing from repo w/ digest
Only print the tag when the received reference has a tag, if
we can't cast the received tag to a `reference.Tagged` then
skip printing the tag as it's likely a digest.

Fixes panic when trying to install a plugin from a reference
with a digest such as
`vieux/sshfs@sha256:1d3c3e42c12138da5ef7873b97f7f32cf99fb6edde75fa4f0bcf9ed277855811`

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-02-05 10:11:38 +01:00
..
executor/containerd daemon: allow shimv2 runtimes to be configured 2023-02-17 18:08:06 -05:00
v2 plugin: use strings.Cut() 2022-12-21 11:09:02 +01:00
backend_linux.go fixing consistent aliases for OCI spec imports 2023-06-01 17:22:49 +02:00
backend_linux_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
backend_unsupported.go plugin: use types/registry.AuthConfig 2022-07-29 23:05:19 +02:00
defs.go plugin: use strings.Cut() 2022-12-21 11:09:02 +01:00
errors.go Use GetBoolOrDefault to remove duplicated invalidFilter usages 2023-01-26 16:28:53 +01:00
events.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fetch_linux.go plugins: fix panic installing from repo w/ digest 2024-02-05 10:11:38 +01:00
manager.go migrate pkg/pubsub to github.com/moby/pubsub 2022-09-30 18:40:19 +02:00
manager_linux.go fixing consistent aliases for OCI spec imports 2023-06-01 17:22:49 +02:00
manager_linux_test.go plugin: Executor.Signal() accept syscall.Signal 2022-05-05 00:53:55 +02:00
manager_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
manager_windows.go Do not call mount.RecursiveUnmount() on Windows 2020-10-29 23:00:16 +01:00
progress.go Use containerd dist libs for plugin pull/pull 2020-04-02 15:03:06 -07:00
registry.go plugin: use types/registry.AuthConfig 2022-07-29 23:05:19 +02:00
store.go plugins: Move GlobalSpecPaths into LocalRegistry 2023-01-10 21:33:49 +01:00
store_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00