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 --- cmd/mbf/main.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'cmd/mbf') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 4beefe68..c6e1940f 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -37,7 +37,6 @@ import ( "hakurei.app/check" "hakurei.app/command" - "hakurei.app/container" "hakurei.app/ext" "hakurei.app/fhs" "hakurei.app/internal/pkg" @@ -67,8 +66,6 @@ func writeFileExcl(name string, data []byte, perm os.FileMode) error { } func main() { - container.TryArgv0(nil) - log.SetFlags(0) log.SetPrefix("mbf: ") msg := message.New(log.Default()) -- cgit v1.3.1