From 9dfb5f9aa46f829dedd0f8a1671f2c13947a14fd Mon Sep 17 00:00:00 2001 From: Molecule AI SDK-Dev Date: Wed, 22 Apr 2026 19:03:36 +0000 Subject: [PATCH] fix(cli): replace runtime.GOEXE with hardcoded "go" in test runtime.GOEXE is not available in Go 1.25 standard library. Replace with the standard "go" binary name which is on PATH in CI. Co-Authored-By: Claude Sonnet 4.6 --- cmd/molecule/molecule_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/molecule/molecule_test.go b/cmd/molecule/molecule_test.go index f13474d..14b4428 100644 --- a/cmd/molecule/molecule_test.go +++ b/cmd/molecule/molecule_test.go @@ -8,7 +8,6 @@ import ( "os" "os/exec" "path/filepath" - "runtime" "strings" "testing" ) @@ -207,8 +206,7 @@ func repoRoot() string { func mol(t *testing.T) string { root := repoRoot() exe := filepath.Join(t.TempDir(), "molecule") - goBin := runtime.GOEXE // e.g. "/usr/bin/go" — respects PATH - cmd := exec.Command(goBin, "build", "-o", exe, "./cmd/molecule") + cmd := exec.Command("go", "build", "-o", exe, "./cmd/molecule") cmd.Dir = root out, err := cmd.CombinedOutput() if err != nil {