From 6bc5be7e5a2334274adf2945ad6d29d063a7086b Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 23 Oct 2024 21:46:21 +0900 Subject: internal: wrap calls to os standard library functions This change helps tests stub out and simulate OS behaviour during the sealing process. This also removes dependency on XDG_RUNTIME_DIR as the internal.System implementation provided to App provides a compat directory inside the tmpdir-based share when XDG_RUNTIME_DIR is unavailable. Signed-off-by: Ophestra Umiker --- license.go | 1 - 1 file changed, 1 deletion(-) (limited to 'license.go') diff --git a/license.go b/license.go index 4cbe0128..dbeede08 100644 --- a/license.go +++ b/license.go @@ -4,7 +4,6 @@ import ( _ "embed" "flag" "fmt" - "os" ) var ( -- cgit v1.3.1