You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tool/cmd/migrate): resolve duplicate API paths and regex failures (#4445)
The regular expression used to parse base API paths from .OwlBot.yaml
source patterns is updated to support a wider variety of directory
structures. Previously, the regex assumed the presence of parentheses
used for version matching (e.g. (v1|v1beta1)), causing failures when
migrating APIs with specific unversioned directory paths like
grafeas-nodejs.
The parseOwlBotAPIPaths function has been rewritten to recursively walk
the matched base path and inspect the nodejs_gapic_library rules in the
BUILD.bazel files. It now explicitly matches the Bazel rule's
package_name property to the Node.js library's package.json name,
ensuring packages sharing the same base path (like
google-cloud-monitoring and google-monitoring-dashboard) are assigned
the correct API paths.
Additionally, runNodejsMigration now wraps errors returned by
librarian.RunTidyOnConfig to surface the exact cause of any librarian
tidy failed errors.
0 commit comments