diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-04 01:48:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-04 01:48:53 +0900 |
| commit | 3eb927823f40723418a9762c7845fd4d12faef20 (patch) | |
| tree | d4a8ac196e7f284eaa9299c741512019bb246e26 /internal/pkg/pkg.go | |
| parent | d76b9d04b813a361fc8e226480e3b66ca0208d41 (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.go | 4 |
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(), ) } |
