From 766dd89ffa198a315b043230f904636461c41efe Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 21 Oct 2025 01:49:36 +0900 Subject: internal: clean up build strings These names are less ambiguous and should be understandable without reading the source code. Signed-off-by: Ophestra --- cmd/hpkg/proc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/hpkg') diff --git a/cmd/hpkg/proc.go b/cmd/hpkg/proc.go index 70889106..013e0b69 100644 --- a/cmd/hpkg/proc.go +++ b/cmd/hpkg/proc.go @@ -14,7 +14,7 @@ import ( "hakurei.app/message" ) -var hakureiPath = internal.MustHakureiPath() +var hakureiPathVal = internal.MustHakureiPath().String() func mustRunApp(ctx context.Context, msg message.Msg, config *hst.Config, beforeFail func()) { var ( @@ -27,9 +27,9 @@ func mustRunApp(ctx context.Context, msg message.Msg, config *hst.Config, before log.Fatalf("cannot pipe: %v", err) } else { if msg.IsVerbose() { - cmd = exec.CommandContext(ctx, hakureiPath.String(), "-v", "app", "3") + cmd = exec.CommandContext(ctx, hakureiPathVal, "-v", "app", "3") } else { - cmd = exec.CommandContext(ctx, hakureiPath.String(), "app", "3") + cmd = exec.CommandContext(ctx, hakureiPathVal, "app", "3") } cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr cmd.ExtraFiles = []*os.File{r} -- cgit v1.3.1