From 3eb927823f40723418a9762c7845fd4d12faef20 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 4 Jan 2026 01:48:53 +0900 Subject: 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 --- internal/pkg/pkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/pkg.go') 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(), ) } -- cgit v1.3.1