From e0eec632d0a7cca2fb09e026997fa9a39dcd7504 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 23 Jul 2026 17:10:22 +0900 Subject: internal/pkg: optional executable files This enables a FileArtifact implementation to specify whether its resulting file should be executable. This change also implements shebang and ELF magic checks in the file artifact. Signed-off-by: Ophestra --- internal/pkg/ir_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/pkg/ir_test.go') diff --git a/internal/pkg/ir_test.go b/internal/pkg/ir_test.go index 963cdc04..312474bc 100644 --- a/internal/pkg/ir_test.go +++ b/internal/pkg/ir_test.go @@ -4,7 +4,6 @@ import ( "bytes" "io" "io/fs" - "math" "reflect" "testing" @@ -154,7 +153,7 @@ func TestRevision(t *testing.T) { p := buf.Bytes() p[8] = 0xfd - wantErr := pkg.RevisionError{math.MaxUint64 - 2, math.MaxUint64} + wantErr := pkg.RevisionError{0xfd, 0} if _, err := c.NewDecoder( bytes.NewReader(p), ).Decode(); !reflect.DeepEqual(err, wantErr) { -- cgit v1.3.1