diff options
Diffstat (limited to 'cmd/hpkg')
| -rw-r--r-- | cmd/hpkg/main.go | 4 | ||||
| -rw-r--r-- | cmd/hpkg/paths.go | 4 | ||||
| -rw-r--r-- | cmd/hpkg/proc.go | 4 | ||||
| -rw-r--r-- | cmd/hpkg/with.go | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/cmd/hpkg/main.go b/cmd/hpkg/main.go index bb3f8865..e3346bff 100644 --- a/cmd/hpkg/main.go +++ b/cmd/hpkg/main.go @@ -11,10 +11,10 @@ import ( "syscall" "hakurei.app/command" - "hakurei.app/container" "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/hst" + "hakurei.app/message" ) var ( @@ -24,7 +24,7 @@ var ( func main() { log.SetPrefix("hpkg: ") log.SetFlags(0) - msg := container.NewMsg(log.Default()) + msg := message.NewMsg(log.Default()) if err := os.Setenv("SHELL", pathShell.String()); err != nil { log.Fatalf("cannot set $SHELL: %v", err) diff --git a/cmd/hpkg/paths.go b/cmd/hpkg/paths.go index e5c045a5..811c7b7a 100644 --- a/cmd/hpkg/paths.go +++ b/cmd/hpkg/paths.go @@ -7,10 +7,10 @@ import ( "strconv" "sync/atomic" - "hakurei.app/container" "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/hst" + "hakurei.app/message" ) const bash = "bash" @@ -52,7 +52,7 @@ func lookPath(file string) string { var beforeRunFail = new(atomic.Pointer[func()]) -func mustRun(msg container.Msg, name string, arg ...string) { +func mustRun(msg message.Msg, name string, arg ...string) { msg.Verbosef("spawning process: %q %q", name, arg) cmd := exec.Command(name, arg...) cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr diff --git a/cmd/hpkg/proc.go b/cmd/hpkg/proc.go index 1bbf5b49..70889106 100644 --- a/cmd/hpkg/proc.go +++ b/cmd/hpkg/proc.go @@ -9,14 +9,14 @@ import ( "os" "os/exec" - "hakurei.app/container" "hakurei.app/hst" "hakurei.app/internal" + "hakurei.app/message" ) var hakureiPath = internal.MustHakureiPath() -func mustRunApp(ctx context.Context, msg container.Msg, config *hst.Config, beforeFail func()) { +func mustRunApp(ctx context.Context, msg message.Msg, config *hst.Config, beforeFail func()) { var ( cmd *exec.Cmd st io.WriteCloser diff --git a/cmd/hpkg/with.go b/cmd/hpkg/with.go index df03a21d..cb86f502 100644 --- a/cmd/hpkg/with.go +++ b/cmd/hpkg/with.go @@ -5,15 +5,15 @@ import ( "os" "strings" - "hakurei.app/container" "hakurei.app/container/check" "hakurei.app/container/fhs" "hakurei.app/hst" + "hakurei.app/message" ) func withNixDaemon( ctx context.Context, - msg container.Msg, + msg message.Msg, action string, command []string, net bool, updateConfig func(config *hst.Config) *hst.Config, app *appInfo, pathSet *appPathSet, dropShell bool, beforeFail func(), ) { @@ -64,7 +64,7 @@ func withNixDaemon( func withCacheDir( ctx context.Context, - msg container.Msg, + msg message.Msg, action string, command []string, workDir *check.Absolute, app *appInfo, pathSet *appPathSet, dropShell bool, beforeFail func()) { mustRunAppDropShell(ctx, msg, &hst.Config{ @@ -102,7 +102,7 @@ func withCacheDir( }, dropShell, beforeFail) } -func mustRunAppDropShell(ctx context.Context, msg container.Msg, config *hst.Config, dropShell bool, beforeFail func()) { +func mustRunAppDropShell(ctx context.Context, msg message.Msg, config *hst.Config, dropShell bool, beforeFail func()) { if dropShell { if config.Container != nil { config.Container.Args = []string{bash, "-l"} |
