aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-07-03 02:59:43 +0900
committerOphestra <cat@gensokyo.uk>2025-07-03 02:59:43 +0900
commit1b5ecd9eaf3289d164d8ed1bce6013e0e4ef8e86 (patch)
tree047fe5fabdfb37d5c0088f7f572cebc8b13853bb /internal
parent82561d62b66f17c05604e87f18187bb3a91f00d2 (diff)
container: move out of toplevel
This allows slightly easier use of the vanity url. This also provides some disambiguation between low level containers and hakurei app containers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/output.go4
-rw-r--r--internal/sys/std.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/output.go b/internal/output.go
index a15be77d..4e148688 100644
--- a/internal/output.go
+++ b/internal/output.go
@@ -1,13 +1,13 @@
package internal
import (
- "git.gensokyo.uk/security/hakurei"
+ "git.gensokyo.uk/security/hakurei/container"
"git.gensokyo.uk/security/hakurei/internal/hlog"
"git.gensokyo.uk/security/hakurei/system"
)
func InstallOutput(verbose bool) {
hlog.Store(verbose)
- hakurei.SetOutput(hlog.Output{})
+ container.SetOutput(hlog.Output{})
system.SetOutput(hlog.Output{})
}
diff --git a/internal/sys/std.go b/internal/sys/std.go
index 098eb3cf..af46117b 100644
--- a/internal/sys/std.go
+++ b/internal/sys/std.go
@@ -12,7 +12,7 @@ import (
"sync"
"syscall"
- "git.gensokyo.uk/security/hakurei"
+ "git.gensokyo.uk/security/hakurei/container"
"git.gensokyo.uk/security/hakurei/hst"
"git.gensokyo.uk/security/hakurei/internal"
"git.gensokyo.uk/security/hakurei/internal/hlog"
@@ -36,7 +36,7 @@ func (s *Std) Getgid() int { return os.Getgid()
func (s *Std) LookupEnv(key string) (string, bool) { return os.LookupEnv(key) }
func (s *Std) TempDir() string { return os.TempDir() }
func (s *Std) LookPath(file string) (string, error) { return exec.LookPath(file) }
-func (s *Std) MustExecutable() string { return hakurei.MustExecutable() }
+func (s *Std) MustExecutable() string { return container.MustExecutable() }
func (s *Std) LookupGroup(name string) (*user.Group, error) { return user.LookupGroup(name) }
func (s *Std) ReadDir(name string) ([]os.DirEntry, error) { return os.ReadDir(name) }
func (s *Std) Stat(name string) (fs.FileInfo, error) { return os.Stat(name) }