compose/pkg/remote
Nicolas De Loof b5709cd309 fix(git): check a commit out aside, and keep the checkouts in a directory of the cache for Git
A commit was checked out directly into its directory of the cache, which was
then taken for complete as soon as it existed: a run interrupted during the
fetch or the checkout left a partial directory that every later run used.

The checkout is now made in a directory of its own and renamed to the one of the
commit once it is complete, so the directory of a commit is never a partial
checkout, and no file beside it is needed to tell. Checkouts live in a "git"
directory of the cache, and what earlier releases left at the root of the cache
is no longer looked for.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-11-09 14:38: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 fix(oci): put back only a complete entry when the replacement of a cache entry fails 2026-11-05 17:58:58 +01:00
oci_cache_entry_test.go fix(oci): put back only a complete entry when the replacement of a cache entry fails 2026-11-05 17:58:58 +01:00
oci_test.go Test to check writeComposeFile detects invalid OCI artifact 2025-10-22 20:09:32 +02:00