From deda16da38187091ec59d28fb4fbc672ff71e70e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 3 Jan 2026 20:56:11 +0900 Subject: internal/pkg: create work directory This is used for artifacts that cure into directories. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/pkg/pkg.go') diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index 2796b4f6..73b93e3e 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -78,6 +78,10 @@ const ( // dirChecksum is the directory name appended to Cache.base for storing // artifacts named after their [Checksum]. dirChecksum = "checksum" + + // dirWork is the directory name appended to Cache.base for working + // directories created for [Cache.Store]. + dirWork = "work" ) // Cache is a support layer that implementations of [Artifact] can use to store @@ -235,6 +239,7 @@ func New(base *check.Absolute) (*Cache, error) { for _, name := range []string{ dirIdentifier, dirChecksum, + dirWork, } { if err := os.MkdirAll(base.Append(name).String(), 0700); err != nil && !errors.Is(err, os.ErrExist) { -- cgit v1.3.1