From a52f7038e5a607dd0901244abb791c96deaf9c2d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 29 Oct 2025 04:09:42 +0900 Subject: internal/env: relocate from app This package is much cleaner to stub independently, and makes no sense to lump into app. Signed-off-by: Ophestra --- internal/app/shim_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/app/shim_test.go') diff --git a/internal/app/shim_test.go b/internal/app/shim_test.go index e207dfda..19dedd6f 100644 --- a/internal/app/shim_test.go +++ b/internal/app/shim_test.go @@ -14,6 +14,7 @@ import ( "hakurei.app/container/seccomp" "hakurei.app/container/stub" "hakurei.app/hst" + "hakurei.app/internal/env" ) func TestShimEntrypoint(t *testing.T) { @@ -128,7 +129,7 @@ func TestShimEntrypoint(t *testing.T) { Container: hst.Template().Container, Mapuid: 1000, Mapgid: 100, - EnvPaths: &EnvPaths{TempDir: fhs.AbsTmp, RuntimePath: fhs.AbsRunUser.Append("1000")}, + Paths: &env.Paths{TempDir: fhs.AbsTmp, RuntimePath: fhs.AbsRunUser.Append("1000")}, }, nil}, nil, nil), call("swapVerbose", stub.ExpectArgs{true}, false, nil), call("verbosef", stub.ExpectArgs{"process share directory at %q, runtime directory at %q", []any{m("/tmp/hakurei.10"), m("/run/user/1000/hakurei")}}, nil, nil), -- cgit v1.3.1