os.Executable() in Go 1.x parallel tests resolves to <TempDir>/0/molecule.test making path-based traversal from the binary back to the repo root unreliable. Switch to os.Getwd() which always returns the repo checkout root in CI (where `go test ./cmd/molecule/...` is invoked), and skip any path arithmetic. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| main.go | ||
| molecule_test.go | ||