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
Copy Markdown
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 review from a team, bcoe and feywind 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
Copy Markdown
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
Copy Markdown
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 :)

Comment thread typescript/src/generator.ts Outdated
@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
gcf-merge-on-green Bot pushed a commit that referenced this pull request Apr 28, 2021
🤖 I have created a release \*beep\* \*boop\*
---
## [1.3.0](https://www.github.com/googleapis/gapic-generator-typescript/compare/v1.2.11...v1.3.0) (2021-04-28)


### Features

* api_dump template to use in tests ([#845](https://www.github.com/googleapis/gapic-generator-typescript/issues/845)) ([71f3ed0](https://www.github.com/googleapis/gapic-generator-typescript/commit/71f3ed045b9d3456b10a5539fd998d445acdb97d))


### Bug Fixes

* **deps:** update all packages (major), do not use get-stdin ([#855](https://www.github.com/googleapis/gapic-generator-typescript/issues/855)) ([07e645a](https://www.github.com/googleapis/gapic-generator-typescript/commit/07e645aa81e5df1e7582e6940ef911d98c1409a2))
* name generation when multiple packages are involved ([#847](https://www.github.com/googleapis/gapic-generator-typescript/issues/847)) ([9ab2a61](https://www.github.com/googleapis/gapic-generator-typescript/commit/9ab2a615be761a97d44dd6ed775cbce3842bced7))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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