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 f374144 commit 2d56e8eCopy full SHA for 2d56e8e
internal/pkg/otel/manager/diagnostics.go
@@ -215,7 +215,9 @@ func getRegexpsForRegistryFiles() []*regexp.Regexp {
215
}
216
217
for _, lst := range preFilesList {
218
- pathRe := filepath.Join(lst...)
+ // On windows, we need to ensure we escape the path separator, because backslash has a special meaning
219
+ separator := regexp.QuoteMeta(string(filepath.Separator))
220
+ pathRe := strings.Join(lst, separator)
221
re := regexp.MustCompile(pathRe)
222
registryFileRegExps = append(registryFileRegExps, re)
223
0 commit comments