From c74c269b66770f0eddde255d2805b79f274409e9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Feb 2026 20:42:33 +0900 Subject: container: use /proc/self/exe directly This is a more reliable form of pathname to self and also cheaper than os.Executable. Signed-off-by: Ophestra --- container/executable.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'container/executable.go') diff --git a/container/executable.go b/container/executable.go index 67c43a70..b825306a 100644 --- a/container/executable.go +++ b/container/executable.go @@ -28,6 +28,9 @@ func copyExecutable(msg message.Msg) { } } +// MustExecutable calls [os.Executable] and terminates the process on error. +// +// Deprecated: This is no longer used and will be removed in 0.4. func MustExecutable(msg message.Msg) string { executableOnce.Do(func() { copyExecutable(msg) }) return executable -- cgit v1.3.1