mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 10:39:19 +00:00
compiler: Speedup & troubleshooting debug messages (#240)
* compiler: Speedup stripFromRootfs and add debug log * compiler: on stripFromRootfs show files removed with debug
This commit is contained in:
@@ -195,11 +195,15 @@ func (cs *LuetCompiler) stripFromRootfs(includes []string, rootfs string, includ
|
|||||||
for _, i := range includeRegexp {
|
for _, i := range includeRegexp {
|
||||||
if i.MatchString(abspath) {
|
if i.MatchString(abspath) {
|
||||||
match = true
|
match = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if include && !match || !include && match {
|
if include && !match || !include && match {
|
||||||
toRemove = append(toRemove, currentpath)
|
toRemove = append(toRemove, currentpath)
|
||||||
|
Debug(":scissors: Removing file", currentpath)
|
||||||
|
} else {
|
||||||
|
Debug(":sun: Matched file", currentpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user