Fix CI: enable beads custom types during install
This commit is contained in:
committed by
beads/crew/dave
parent
5141facb21
commit
f30178265c
@@ -138,10 +138,14 @@ func cleanBeadsRuntimeFiles(beadsDir string) {
|
|||||||
"mq",
|
"mq",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var firstErr error
|
||||||
for _, pattern := range runtimePatterns {
|
for _, pattern := range runtimePatterns {
|
||||||
matches, err := filepath.Glob(filepath.Join(beadsDir, pattern))
|
matches, err := filepath.Glob(filepath.Join(beadsDir, pattern))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue // Invalid pattern, skip
|
if firstErr == nil {
|
||||||
|
firstErr = err
|
||||||
|
}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
for _, match := range matches {
|
for _, match := range matches {
|
||||||
_ = os.RemoveAll(match) // Best effort, ignore errors
|
_ = os.RemoveAll(match) // Best effort, ignore errors
|
||||||
|
|||||||
Reference in New Issue
Block a user