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
{{ message }}
Repository navigation
php: librarian add derives an invalid component output for a nested Google\Cloud\ namespace #7901
Onboarding google/cloud/saasplatform/saasservicemgmt/v1 to googleapis/google-cloud-php as a new component, with Librarian v0.51.0 and googleapis 856bc831c5. The proto has php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1".
What happened
librarian add set output: SaasPlatform\SaasServiceMgmt in librarian.yaml. componentName() in internal/librarian/php/init.go only removes the Google\Cloud\ prefix and keeps the rest unchanged; non-Cloud namespaces have their backslashes removed.
librarian generate exited 0 and created a top-level directory named SaasPlatform\SaasServiceMgmt/, with a literal backslash. The same string appeared in the root composer.json psr-4 entries, the .repo-metadata-full.json key and the component's extra.component.path.
Activity
fix(internal/librarian/php): remove backslashes from nested Cloud com…