From a6600be34ad812ff13c89f45c3cadaac6d994e67 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 30 Mar 2026 18:15:56 +0900 Subject: all: use filepath This makes package check portable, and removes nonportable behaviour from package pkg, pipewire, and system. All other packages remain nonportable due to their nature. No latency increase was observed due to this change on amd64 and arm64 linux. Signed-off-by: Ophestra --- internal/pkg/exec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/exec.go') diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index f1385529..a78dab84 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -8,7 +8,7 @@ import ( "io" "os" "os/exec" - "path" + "path/filepath" "slices" "strconv" "syscall" @@ -189,7 +189,7 @@ func NewExec( paths ...ExecPath, ) Artifact { if name == "" { - name = "exec-" + path.Base(pathname.String()) + name = "exec-" + filepath.Base(pathname.String()) } if timeout <= 0 { timeout = ExecTimeoutDefault -- cgit v1.3.1