From a3c73a8e2b7e800a9dd0aa7388a05f9761a5aaf9 Mon Sep 17 00:00:00 2001 From: Antoine Toussaint <312536060+antoinetoussaint-byte@users.noreply.github.com> Date: Tue, 22 Sep 2026 02:14:52 -0400 Subject: [PATCH] fix(release): select the source packager independently of installed agents --- agent.codefly.yaml | 3 +++ release_test.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/agent.codefly.yaml b/agent.codefly.yaml index 2119ebf..dcafebc 100644 --- a/agent.codefly.yaml +++ b/agent.codefly.yaml @@ -2,6 +2,9 @@ publisher: codefly.dev kind: codefly:service name: temporal version: 0.0.18 +source: + directory: . + agent: codefly.dev/go:0.0.56 release: owner: workflow workflow: releaser.yml diff --git a/release_test.go b/release_test.go index d15f99c..0665b7e 100644 --- a/release_test.go +++ b/release_test.go @@ -20,8 +20,12 @@ func TestReleaseDeclaresOnePublisherAndArchiveSBOMs(t *testing.T) { } var manifest struct { Release struct{ Owner, Workflow string } + Source struct{ Directory, Agent string } } read("agent.codefly.yaml", &manifest) + if manifest.Source.Directory != "." || manifest.Source.Agent == "" { + t.Fatal("publication must select a source packager even when several compatible agents are installed") + } if manifest.Release.Owner != "workflow" || manifest.Release.Workflow != "releaser.yml" { t.Fatal("the tag workflow must be the sole artifact publisher") }