From 7556a863b3a43d976bcdc87d9c88a4859af05207 Mon Sep 17 00:00:00 2001 From: Onsi Fakhouri Date: Wed, 5 Mar 2025 10:50:17 -0700 Subject: [PATCH] fix edge case where build -o is pointing at an explicit file, not a directory --- ginkgo/build/build_command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ginkgo/build/build_command.go b/ginkgo/build/build_command.go index 7c3d96ee4..a071b8d09 100644 --- a/ginkgo/build/build_command.go +++ b/ginkgo/build/build_command.go @@ -63,6 +63,8 @@ func buildSpecs(args []string, cliConfig types.CLIConfig, goFlagsConfig types.Go } if stat.IsDir() { testBinPath = goFlagsConfig.O + "/" + suite.PackageName + ".test" + } else { + testBinPath = goFlagsConfig.O } } if len(testBinPath) == 0 {