From 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 9 Oct 2025 05:04:08 +0900 Subject: message: relocate from container This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra --- cmd/hpkg/with.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd/hpkg/with.go') 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"} -- cgit v1.3.1