compose/pkg/remote
Tobias Schlatter e68a65737b
Some checks are pending
ci / validate (lint) (push) Waiting to run
ci / validate (relay-lint) (push) Waiting to run
ci / validate (relay-test) (push) Waiting to run
ci / validate (validate-docs) (push) Waiting to run
ci / validate (validate-go-mod) (push) Waiting to run
ci / validate (validate-headers) (push) Waiting to run
ci / validate (validate-mocks) (push) Waiting to run
ci / binary (push) Waiting to run
ci / binary-finalize (push) Blocked by required conditions
ci / bin-image-test (push) Waiting to run
ci / relay-image-test (push) Waiting to run
ci / test (push) Waiting to run
ci / e2e (plugin, oldstable, graphdriver) (push) Waiting to run
ci / e2e (standalone, oldstable, graphdriver) (push) Waiting to run
ci / e2e (plugin, stable, containerd) (push) Waiting to run
ci / e2e (plugin, stable, graphdriver) (push) Waiting to run
ci / e2e (standalone, stable, containerd) (push) Waiting to run
ci / e2e (standalone, stable, graphdriver) (push) Waiting to run
ci / e2e (plugin, test, graphdriver, jobs extension) (push) Waiting to run
ci / coverage (push) Blocked by required conditions
ci / ci-ok (push) Blocked by required conditions
ci / release (push) Blocked by required conditions
merge / bin-image-prepare (push) Waiting to run
merge / bin-image (push) Blocked by required conditions
merge / relay-image (push) Waiting to run
merge / module-image (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
zizmor / zizmor (push) Waiting to run
feat(oci): directly load from cache if possible
Fixes #14460.

If an oci artifact is sha-pinned and we have it in the cache, don't
even talk to the registry.

The primary use case is operational safety in case of registry failure:
This allows to still work with a compose config that
`includes: oci://` if it has been pulled before.

This aligns the behavior with docker itself: images are kept locally,
so it is not necessary for the registry to be up to, say, recreate an
existing container with a modified environment.

Signed-off-by: Tobias Schlatter <schlatter.tobias@gmail.com>
2026-11-26 16:07:36 +01:00
..
cache.go re-implement cache folder detection 2023-11-02 11:16:35 +01:00
cache_darwin.go add a copyright notice with original author 2023-11-02 11:16:35 +01:00
cache_unix.go feat(os): add FreeBSD support 2025-07-11 10:44:45 +02:00
cache_windows.go add a copyright notice with original author 2023-11-02 11:16:35 +01:00
git.go fix(git): check a commit out aside, and keep the checkouts in a directory of the cache for Git 2026-11-09 14:38:36 +01:00
git_cache_test.go fix(git): check a commit out aside, and keep the checkouts in a directory of the cache for Git 2026-11-09 14:38:36 +01:00
git_test.go fix(git): Add validation for Git subdirectory paths to prevent traversal 2025-10-30 10:08:29 +01:00
oci.go feat(oci): directly load from cache if possible 2026-11-26 16:07:36 +01:00
oci_cache_entry_test.go feat(oci): directly load from cache if possible 2026-11-26 16:07:36 +01:00
oci_cache_test.go fix(oci): take a directory of the cache for an entry only when it holds the manifest of its digest 2026-11-11 08:52:55 +01:00
oci_test.go Test to check writeComposeFile detects invalid OCI artifact 2025-10-22 20:09:32 +02:00