diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-26 04:03:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-26 04:03:05 +0900 |
| commit | 2abc8c454e96c00f167862197cdd408b6537def6 (patch) | |
| tree | 6331b8524ed37daba69357d1dca087863d59754c | |
| parent | fecb963e85fca988e9e1ce4fb66ceab0072557ee (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.go | 5 |
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 |
