INNER CODE UNIT · Go
getRepoRoot
santifer/career-ops · dashboard/main.go:316
func getRepoRoot() string {
cwd, err := os.Getwd()
if err != nil {
return "."
}
if _, err := os.Stat(filepath.Join(cwd, "path-resolver.mjs")); err == nil {
return cwd
}
parent := filepath.Dir(cwd)
if _, err := os.Stat(filepath.Join(parent, "path-resolver.mjs")); err == nil {
return parent
}
return cwd
}
func resolveEnvPath(envVal string) string {
trimmed := strings.TrimSpace(envVal)
if trimmed == "" {