aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-26 04:03:05 +0900
committerOphestra <cat@gensokyo.uk>2026-01-26 04:03:05 +0900
commit2abc8c454e96c00f167862197cdd408b6537def6 (patch)
tree6331b8524ed37daba69357d1dca087863d59754c
parentfecb963e85fca988e9e1ce4fb66ceab0072557ee (diff)
internal/pkg: absolute hard link
This cannot be relative since the curing process is not in the temp directory. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/pkg/tar.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go
index ba68fa69..59c44cbf 100644
--- a/internal/pkg/tar.go
+++ b/internal/pkg/tar.go
@@ -175,7 +175,10 @@ func (a *tarArtifact) Cure(t *TContext) (err error) {
break
case tar.TypeLink:
- if err = os.Link(header.Linkname, pathname.String()); err != nil {
+ if err = os.Link(
+ temp.Append(header.Linkname).String(),
+ pathname.String(),
+ ); err != nil {
return
}
break