Skip to content

Commit 4e764d2

Browse files
Update internal/spectest/spectest.go
Co-authored-by: Matt Dale <[email protected]>
1 parent 285ab76 commit 4e764d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/spectest/spectest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
4242

4343
// Path returns the absolute path to the given specifications repo file or
4444
// subdirectory.
45+
//
46+
// If the PROJECT_DIRECTORY environment variable is set, Path uses that to find
47+
// the repo root path. Otherwise, it falls back to using the call stack to find
48+
// the repo root path. Path panics if it can't find the repo root path.
4549
func Path(subdir string) string {
4650
root := os.Getenv("PROJECT_DIRECTORY")
4751
if root == "" {

0 commit comments

Comments
 (0)