From 6b901cc25fce676eba44f32cfa3a1a0a3f7c37f5 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 14 Apr 2025 19:01:28 +0200 Subject: [PATCH] assert interface for nosysFileInfo As the module now has go1.23 as minimum, we can enable this. Signed-off-by: Sebastiaan van Stijn --- archive.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/archive.go b/archive.go index af9876b..2c2c31a 100644 --- a/archive.go +++ b/archive.go @@ -476,9 +476,7 @@ func (compression *Compression) Extension() string { } // assert that we implement [tar.FileInfoNames]. -// -// TODO(thaJeztah): disabled to allow compiling on < go1.23. un-comment once we drop support for older versions of go. -// var _ tar.FileInfoNames = (*nosysFileInfo)(nil) +var _ tar.FileInfoNames = (*nosysFileInfo)(nil) // nosysFileInfo hides the system-dependent info of the wrapped FileInfo to // prevent tar.FileInfoHeader from introspecting it and potentially calling into