Commit 3c2f1b2
committed
fix: resolve yq version compatibility in dependency resolver
- Fix get_all_services function to handle different yq output formats
- Add fallback logic for yq -r flag and comment filtering
- Resolves false positive circular dependency detection in CI
- CI was using yq version that includes YAML comments in output
- Local uses different yq that outputs clean JSON arrays
The debug output revealed that CI yq was outputting:
# Database service (no dependencies)
- mariadb
Which contaminated service parsing. Now filters out comment lines.
Fixes test 53: detect_circular_dependencies_should_find_circular_refs1 parent 37bb464 commit 3c2f1b2
2 files changed
Lines changed: 3 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 163 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 164 | | |
196 | 165 | | |
197 | 166 | | |
| |||
0 commit comments