From 2abc8c454e96c00f167862197cdd408b6537def6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 26 Jan 2026 04:03:05 +0900 Subject: [PATCH] internal/pkg: absolute hard link This cannot be relative since the curing process is not in the temp directory. Signed-off-by: Ophestra --- internal/pkg/tar.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index ba68fa6..59c44cb 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