Fix everything that you broke retard
This commit is contained in:
@@ -75,7 +75,15 @@ func AssociateFilesWithCommands(files []string, commands []ModifyCommand) (map[s
|
|||||||
}
|
}
|
||||||
for _, command := range commands {
|
for _, command := range commands {
|
||||||
for _, glob := range command.Files {
|
for _, glob := range command.Files {
|
||||||
matches, err := Matches(file, glob)
|
_, pattern, err := FigureOutGlobRoot(glob)
|
||||||
|
if err != nil {
|
||||||
|
logger.Trace("Failed to figure out glob root for %s: %v", glob, err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
file = filepath.Clean(file)
|
||||||
|
file = strings.ReplaceAll(file, "\\", "/")
|
||||||
|
|
||||||
|
matches, err := Matches(file, pattern)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Trace("Failed to match glob %s with file %s: %v", glob, file, err)
|
logger.Trace("Failed to match glob %s with file %s: %v", glob, file, err)
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user