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
+
// ConfigFileResult contains the path to a config file and any warnings
46
+
typeConfigFileResultstruct {
47
+
Pathstring
48
+
Warningstring
49
+
}
50
+
51
+
// LookupConfigFile looks for a sops config file in the current working directory
52
+
// and on parent directories, up to the maxDepth limit.
53
+
// It returns a result containing the file path and any warnings.
"ignoring %q when searching for config file; the config file must be called %q",
89
+
foundAlternatePath, configFileName)
90
+
}
91
+
92
+
returnresult, fmt.Errorf("config file not found")
93
+
}
94
+
95
+
// 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