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/compress.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/pkg/compress.go') diff --git a/internal/pkg/compress.go b/internal/pkg/compress.go index 50303419..9a0c1152 100644 --- a/internal/pkg/compress.go +++ b/internal/pkg/compress.go @@ -91,6 +91,9 @@ func (c compoundCloser) Close() error { return err } +// IsExecutable returns false. +func (*decompressArtifact) IsExecutable() bool { return false } + // Cure returns a decompressor [io.ReadCloser]. func (a *decompressArtifact) Cure(r *RContext) (io.ReadCloser, error) { sr, err := r.Open(a.f) -- cgit v1.3.1