Commit d71fd6a
authored
fix(internal/godocfx): make friendlyAPIName tolerant of missing packages (googleapis#14194)
friendlyAPIName was recently changed to return an empty string instead
of an error when a package or metadata is not found.
This matches the [old
behavior](https://github.com/googleapis/google-cloud-go/blob/ec656b96fed7ec1fd31ebeb7e9e68cb2ae1e2c79/internal/godocfx/parse.go#L689)
prior to when fixes were made to account for individual .json files.
Without this change, our tests for alloydbconn, cloudqlconn will fail
since they don't .repo-metadata.json files, and also don't live in this
repository. In addition, the auth library generation also fails. None of
these packages required a friendly API namer in the old behavior.1 parent d5db0ee commit d71fd6a
File tree
3 files changed
+17
-29
lines changed- internal/godocfx
- testdata/golden/cloud.google.com/go/storage@v1.33.0
3 files changed
+17
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
| 312 | + | |
323 | 313 | | |
324 | 314 | | |
325 | 315 | | |
| |||
335 | 325 | | |
336 | 326 | | |
337 | 327 | | |
338 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
342 | 336 | | |
343 | 337 | | |
344 | | - | |
345 | 338 | | |
346 | 339 | | |
347 | 340 | | |
| |||
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 363 | | |
379 | 364 | | |
380 | 365 | | |
381 | 366 | | |
382 | 367 | | |
383 | 368 | | |
384 | | - | |
| 369 | + | |
385 | 370 | | |
386 | 371 | | |
387 | | - | |
388 | | - | |
389 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
390 | 378 | | |
391 | 379 | | |
392 | 380 | | |
393 | 381 | | |
394 | 382 | | |
395 | | - | |
396 | | - | |
| 383 | + | |
| 384 | + | |
397 | 385 | | |
398 | 386 | | |
399 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
| 794 | + | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments