Commit a3a806e
Fix race condition in refreshCELibraries causing Go/Rust/Fortran libraries to be misclassified
The previous implementation wrapped all 4 HTTP requests in a single Promise
and called resolve() in each response handler, so the promise resolved as
soon as the first request (typically C++) completed. This meant
allGoLibrariesAndVersions (and others) could still be null when
refreshConanLibraries ran, causing Go libraries to fall through to the
forceall fallback and be misclassified as C++.
Use Promise.all to wait for all language API calls before proceeding.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 30b844a commit a3a806e
1 file changed
+16
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 166 | + | |
179 | 167 | | |
180 | 168 | | |
181 | 169 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 170 | + | |
208 | 171 | | |
209 | 172 | | |
210 | 173 | | |
| |||
213 | 176 | | |
214 | 177 | | |
215 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
216 | 192 | | |
217 | 193 | | |
218 | 194 | | |
| |||
0 commit comments