cmd/dist: default to /usr/local prefix
Test / Create distribution (push) Successful in 52s
Test / Sandbox (push) Successful in 3m11s
Test / Hakurei (push) Successful in 4m36s
Test / ShareFS (push) Successful in 4m38s
Test / Sandbox (race detector) (push) Successful in 5m56s
Test / Hakurei (race detector) (push) Successful in 7m5s
Test / Flake checks (push) Successful in 1m5s

This conventionally makes more sense for software not installed by the package manager.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-07-24 19:12:59 +09:00
parent 6c2ca507b9
commit 3b7a22ff9b
+1 -1
View File
@@ -57,7 +57,7 @@ func main() {
verbose := os.Getenv("VERBOSE") != "" verbose := os.Getenv("VERBOSE") != ""
runTests := os.Getenv("HAKUREI_DIST_MAKE") == "" runTests := os.Getenv("HAKUREI_DIST_MAKE") == ""
version = getenv("HAKUREI_VERSION", strings.TrimSpace(version)) version = getenv("HAKUREI_VERSION", strings.TrimSpace(version))
prefix := getenv("PREFIX", "/usr") prefix := getenv("PREFIX", "/usr/local")
destdir := getenv("DESTDIR", "dist") destdir := getenv("DESTDIR", "dist")
if verbose { if verbose {