Commit ccaac40
committed
Fix documentation check building every target N times
The yq expression used to read documentation targets from .spi.yml wrapped
the config in select(.documentation_targets[] != ""). Because the filter
inside select() evaluates .documentation_targets[] as a stream of booleans,
select() re-emits the config once per target, and the trailing
.documentation_targets[] then multiplies the list to N*N entries.
For a package with 17 doc targets this expanded to ~272 targets, so
check-docs.sh built every target ~17 times and the job hit its 20 minute
timeout (appearing to hang / infinite loop).
Move the empty-string guard onto each individual target so every target is
emitted exactly once.1 parent b91213c commit ccaac40
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments