From ae2df2c450dd655b93a950124b6ab16e2b4d967b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 25 Sep 2025 13:46:21 +0900 Subject: internal: remove sys package This package is replaced by container/stub. Remove and replace it with unexported implementation for the upcoming test suite rewrite. Signed-off-by: Ophestra --- internal/app/app.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'internal/app/app.go') diff --git a/internal/app/app.go b/internal/app/app.go index 4ecf1cc0..b5331568 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -8,19 +8,17 @@ import ( "hakurei.app/hst" "hakurei.app/internal/app/state" - "hakurei.app/internal/sys" ) // Main runs an app according to [hst.Config] and terminates. Main does not return. -func Main(ctx context.Context, k sys.State, config *hst.Config) { +func Main(ctx context.Context, config *hst.Config) { var id state.ID if err := state.NewAppID(&id); err != nil { log.Fatal(err) } - var seal outcome - seal.id = &stringPair[state.ID]{id, id.String()} - if err := seal.finalise(ctx, k, config); err != nil { + seal := outcome{id: &stringPair[state.ID]{id, id.String()}, syscallDispatcher: direct{}} + if err := seal.finalise(ctx, config); err != nil { printMessageError("cannot seal app:", err) os.Exit(1) } -- cgit v1.3.1