moby/plugin
Laura Brehm 74d51e8553
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>
2024-02-04 20:23:06 +00:00
..
executor/containerd libcontainerd: create unstarted tasks 2024-01-10 13:50:26 -05:00
v2 plugin: format code with gofumpt 2023-06-29 00:31:50 +02:00
backend_linux.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01:00
backend_linux_test.go plugin: format code with gofumpt 2023-06-29 00:31:50 +02:00
backend_unsupported.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01: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-04 20:23:06 +00:00
manager.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
manager_linux.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
manager_linux_test.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01: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 migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
store.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
store_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00