aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-04 01:48:53 +0900
committerOphestra <cat@gensokyo.uk>2026-01-04 01:48:53 +0900
commit3eb927823f40723418a9762c7845fd4d12faef20 (patch)
treed4a8ac196e7f284eaa9299c741512019bb246e26 /internal/pkg/pkg.go
parentd76b9d04b813a361fc8e226480e3b66ca0208d41 (diff)
internal/pkg: create symlinks for files
These are much easier to handle than hard links and should be just as transparent for this use case. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index 76e25d65..f56d42d1 100644
--- a/internal/pkg/pkg.go
+++ b/internal/pkg/pkg.go
@@ -342,8 +342,8 @@ func (c *Cache) storeFile(
return err
}
- return os.Link(
- checksumPathname.String(),
+ return os.Symlink(
+ "../"+dirChecksum+"/"+path.Base(checksumPathname.String()),
identifierPathname.String(),
)
}