aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hpkg
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-21 01:49:36 +0900
committerOphestra <cat@gensokyo.uk>2025-10-21 01:49:36 +0900
commit766dd89ffa198a315b043230f904636461c41efe (patch)
tree163290a35109da0cae36c6453fc4b56529cf4d54 /cmd/hpkg
parent699c19e972a3cbcc714403aedffcb5ff74386cfc (diff)
internal: clean up build strings
These names are less ambiguous and should be understandable without reading the source code. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/hpkg')
-rw-r--r--cmd/hpkg/proc.go6
1 files changed, 3 insertions, 3 deletions
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}