Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

fix: name generation when multiple packages are involved#847

Merged
alexander-fenster merged 2 commits intomasterfrom
fix-naming-pubsub
Mar 25, 2021
Merged

fix: name generation when multiple packages are involved#847
alexander-fenster merged 2 commits intomasterfrom
fix-naming-pubsub

Conversation

@alexander-fenster
Copy link
Contributor

Fixes the problem with incorrect package name in Pub/Sub library (and possibly others), now with the test coverage (hence the API JSON change). After this is released, it should generate a proper config JSON.

@alexander-fenster alexander-fenster requested a review from a team as a code owner March 25, 2021 00:05
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 25, 2021
@@ -1,9 +1,4 @@
[
"../../protos/google/cloud/asset/v1/asset_service.proto",
"../../protos/google/cloud/asset/v1/assets.proto",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't change anything in the generated code.

const packageNamesToGenerate = protoFilesToGenerate.map(
pf => pf.package || ''
);
const protoPackagesToGenerate = new Set<string>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix follows #832 - this is just one more place I forgot to fix (and did not catch it because of lack of test coverage). Now this is covered by tests :)

@alexander-fenster alexander-fenster merged commit 9ab2a61 into master Mar 25, 2021
@alexander-fenster alexander-fenster deleted the fix-naming-pubsub branch March 25, 2021 05:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants