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 53bfe05 commit f69a7b0Copy full SHA for f69a7b0
files.go
@@ -568,7 +568,7 @@ func (x *XFile) squashRoot(files []string) ([]string, error) {
568
569
for _, path := range files {
570
// Remove the output dir suffix, then split on `/` (or `\`) and get the first item.
571
- newRoot := strings.TrimPrefix(strings.TrimPrefix(path, x.OutputDir), string(filepath.Separator))
+ newRoot := strings.TrimLeft(strings.TrimPrefix(path, x.OutputDir), string(filepath.Separator))
572
roots[strings.SplitN(newRoot, string(filepath.Separator), 2)[0]] = struct{}{} //nolint:mnd
573
}
574
0 commit comments