internal/pkg: create symlinks for files
All checks were successful
Test / Create distribution (push) Successful in 42s
Test / Sandbox (push) Successful in 2m45s
Test / Hakurei (push) Successful in 3m36s
Test / ShareFS (push) Successful in 3m42s
Test / Hpkg (push) Successful in 4m17s
Test / Sandbox (race detector) (push) Successful in 4m49s
Test / Hakurei (race detector) (push) Successful in 5m48s
Test / Flake checks (push) Successful in 1m44s

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>
This commit is contained in:
2026-01-04 01:48:53 +09:00
parent d76b9d04b8
commit 3eb927823f
4 changed files with 17 additions and 17 deletions

View File

@@ -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(),
)
}