From 92b61889a6db7e5e351cade9c871a9d670917ee9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 17 Jun 2026 02:16:57 +0900 Subject: hst: support ephemeral overlay mounts This is useful for reusing a readonly template without autoroot. Signed-off-by: Ophestra --- check/absolute.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'check') diff --git a/check/absolute.go b/check/absolute.go index 1a050d06..c5970abb 100644 --- a/check/absolute.go +++ b/check/absolute.go @@ -31,6 +31,8 @@ func (e AbsoluteError) Is(target error) bool { type Absolute struct{ pathname unique.Handle[string] } var ( + _ fmt.GoStringer = new(Absolute) + _ encoding.TextAppender = new(Absolute) _ encoding.TextMarshaler = new(Absolute) _ encoding.TextUnmarshaler = new(Absolute) @@ -40,6 +42,10 @@ var ( _ encoding.BinaryUnmarshaler = new(Absolute) ) +func (a *Absolute) GoString() string { + return fmt.Sprintf("check.MustAbs(%q)", a.String()) +} + // ok returns whether [Absolute] is not the zero value. func (a *Absolute) ok() bool { return a != nil && *a != (Absolute{}) } -- cgit v1.3.1