aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go5
1 files changed, 5 insertions, 0 deletions
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) {