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
// 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.
warning=fmt.Sprintf("Ignoring %q when searching for config file. The config file must be called %q.", foundMisspelledPath, configFileName)
83
+
84
+
// No config file found
85
+
result:=ConfigFileResult{}
86
+
iffoundAlternatePath!="" {
87
+
result.Warning=fmt.Sprintf(
88
+
"ignoring %q when searching for config file; the config file must be called %q",
89
+
foundAlternatePath, configFileName)
74
90
}
75
-
return"", err, warning
91
+
92
+
returnresult, fmt.Errorf("config file not found")
76
93
}
77
94
78
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