We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 285ab76 commit 4e764d2Copy full SHA for 4e764d2
internal/spectest/spectest.go
@@ -42,6 +42,10 @@ func FindJSONFilesInDir(t *testing.T, dir string) []string {
42
43
// Path returns the absolute path to the given specifications repo file or
44
// 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.
49
func Path(subdir string) string {
50
root := os.Getenv("PROJECT_DIRECTORY")
51
if root == "" {
0 commit comments