Closed edsantiago closed 1 month ago
OBTW it's not an alphanumeric-sorting issue: I tried dir1=aaa, dir2=bbb
and vice-versa, and it still flakes unpredictably.
@ygalblum, ideas? I didn't find the time to follow all recent Quadlet improvements.
commit 133ea31ffb9e6cd9ccbbc01053463f04c11f7f18 introduced the regression. Moving from []string
to map[string]struct{}
broke the assumption that the entries are ordered
@giuseppe is correct, thanks. I think we need to keep the order assumption because it provides predictability as to which file is processed and which is skipped. So, I'll need to rework on that change.
the previous code was not deterministic for sub dirs. I think we need to sort the dir entries too
Are you sure? Because, the previous code used WalkDir which states that The files are walked in lexical order, which makes the output deterministic
and each new directory was appended to the end of the list.
sorry you are right. WalkDir is fine
Has something changed in the processing of
$QUADLET_UNIT_DIRS
?First seen today.
Reproducer:
[sys] |252| quadlet conflict names
For extra credit, a patch similar to this one might be appreciated by future maintainers looking at the test failure.