From 1c3761bb53c95d75751f95e8f77d9d1e5928b968 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 14:48:27 +0900 Subject: container: enter init path early There is generally no use case where any setup is required before init, and requiring the explicit function call is error-prone and unnecessary. It also causes trouble with packages using a similar trick. This change moves argv0 check early and makes it an import side effect. The stub will be removed in v0.5. Signed-off-by: Ophestra --- ldd/exec_test.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ldd') diff --git a/ldd/exec_test.go b/ldd/exec_test.go index 4621d335..0546b9ad 100644 --- a/ldd/exec_test.go +++ b/ldd/exec_test.go @@ -2,12 +2,10 @@ package ldd_test import ( "errors" - "os" "os/exec" "testing" "hakurei.app/check" - "hakurei.app/container" "hakurei.app/ldd" "hakurei.app/message" ) @@ -42,5 +40,3 @@ func TestExec(t *testing.T) { } }) } - -func TestMain(m *testing.M) { container.TryArgv0(nil); os.Exit(m.Run()) } -- cgit v1.3.1