From 610572d0e6a6edfe3c2ffd1bfcca1396cad6818f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 12 Jan 2026 04:34:50 +0900 Subject: internal/pkg: optionally named static file These are generally for generating configuration files or build scripts, naming them is quite useful. Signed-off-by: Ophestra --- internal/pkg/pkg_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg/pkg_test.go') diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 2c664385..f5e6dc5c 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -496,7 +496,7 @@ func TestCache(t *testing.T) { if _, _, err = c.Cure(stubArtifactF{ kind: pkg.KindExec, params: []byte("unreachable artifact cured after cancel"), - deps: []pkg.Artifact{pkg.NewFile([]byte("unreachable dependency"))}, + deps: []pkg.Artifact{pkg.NewFile("", []byte("unreachable dependency"))}, }); !reflect.DeepEqual(err, context.Canceled) { t.Fatalf("(closed) Cure: error = %v", err) } -- cgit v1.3.1