You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FindConfigFile looks for a sops config file in the current working directory and on parent directories, up to the limit defined by the maxDepth constant.
45
-
funcFindConfigFile(startstring) (string, error) {
45
+
// FindConfigFileEx looks for a sops config file in the current working directory and on parent directories, up to the limit defined by the maxDepth constant.
46
+
// The third return value is a warning in case misspelled config files were found.
"Ignoring %q when searching for config file. The config file must be called %q."+
65
+
" Found and using %q further up the directory tree instead.",
66
+
foundMisspelledPath, configFileName, configPath)
67
+
}
68
+
returnconfigPath, nil, warning
53
69
}
54
70
}
55
-
return"", fmt.Errorf("Config file not found")
71
+
err:=fmt.Errorf("Config file not found")
72
+
iflen(foundMisspelledPath) >0 {
73
+
warning=fmt.Sprintf("Ignoring %q when searching for config file. The config file must be called %q.", foundMisspelledPath, configFileName)
74
+
}
75
+
return"", err, warning
76
+
}
77
+
78
+
// FindConfigFile looks for a sops config file in the current working directory and on parent directories, up to the limit defined by the maxDepth constant.
0 commit comments