aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hsu/path.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-25 03:59:52 +0900
committerOphestra <cat@gensokyo.uk>2025-06-25 04:57:41 +0900
commit87e008d56de974947ebb99c2cc40b25d3c2cf43e (patch)
tree31791911e5226d6ec04e3fac7d91b0bf53e63aa5 /cmd/hsu/path.go
parent399207321265307bb15f37d867f9370cd51c82a8 (diff)
treewide: rename to hakurei
Fortify makes little sense for a container tool. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/hsu/path.go')
-rw-r--r--cmd/hsu/path.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/hsu/path.go b/cmd/hsu/path.go
new file mode 100644
index 00000000..b4a7756a
--- /dev/null
+++ b/cmd/hsu/path.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "log"
+ "path"
+)
+
+const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"
+
+var (
+ hmain = compPoison
+ fpkg = compPoison
+)
+
+func mustCheckPath(p string) string {
+ if p != compPoison && p != "" && path.IsAbs(p) {
+ return p
+ }
+ log.Fatal("this program is compiled incorrectly")
+ return compPoison
+}