From 1abee0a5efdaa760eae683a160bb3d0d17d4cdd4 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 22 Sep 2026 14:55:04 +1000 Subject: [PATCH] test(deploy): only require a version path where one is missing --- deploy_workflow_test.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/deploy_workflow_test.go b/deploy_workflow_test.go index 6a32f1a46..bf6638abe 100644 --- a/deploy_workflow_test.go +++ b/deploy_workflow_test.go @@ -166,9 +166,15 @@ func TestDistZipShipsEveryHostCommand(t *testing.T) { } } for _, command := range wantBinaries { - main := readDeploymentFile(t, filepath.Join("cmd", command, "main.go")) - if !strings.Contains(main, "buildinfo") { - t.Errorf("cmd/%s/main.go has no way to report its version", command) + // archied's flag lives in the app package it delegates to, not its thin + // cmd main; the rest report through buildinfo in their own main. + source := filepath.Join("cmd", command, "main.go") + if command == "archied" { + source = filepath.Join("internal", "app", "archied", "main.go") + } + main := readDeploymentFile(t, source) + if !strings.Contains(main, "buildinfo") && !strings.Contains(main, "-version") && !strings.Contains(main, "\"version\"") { + t.Errorf("%s has no way to report its version", source) } }