Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make plugin parameters work properly #574

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

alexander-fenster
Copy link
Contributor

Handling extra plugin parameters properly.

Also, adding a debug print to simplify transitioning from Docker containers to Bazel builds.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 24, 2020
Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -79,10 +79,14 @@ export class Generator {
const parameters = parameter.split(',');
for (let param of parameters) {
// remove double quote
param = param.substring(1, param.length - 1);
if (param[0] === '"' && param[param.length - 1] === '"') {
Copy link
Contributor

Choose a reason for hiding this comment

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

is parm.lenght guaranteed to be >=1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not matter, it won't crash in JavaScript (will return undefined).

@alexander-fenster alexander-fenster merged commit 2d77494 into master Jun 24, 2020
@alexander-fenster alexander-fenster deleted the plugin-parameters branch June 24, 2020 15:38
lukesneeringer pushed a commit to googleapis/googleapis that referenced this pull request Jun 24, 2020
This version of the generator includes a fix to make plugin parameters work properly: googleapis/gapic-generator-typescript#574

PiperOrigin-RevId: 318086414
yoshi-automation added a commit to googleapis/python-recommender that referenced this pull request Jul 1, 2020
This version of the generator includes a fix to make plugin parameters work properly: googleapis/gapic-generator-typescript#574

PiperOrigin-RevId: 318086414

Source-Author: Google APIs <[email protected]>
Source-Date: Wed Jun 24 10:05:15 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: cbf322455cc960260c8c41d9cecaa7c4c3576ce9
Source-Link: googleapis/googleapis@cbf3224
yoshi-automation added a commit to googleapis/python-service-directory that referenced this pull request Jul 1, 2020
This version of the generator includes a fix to make plugin parameters work properly: googleapis/gapic-generator-typescript#574

PiperOrigin-RevId: 318086414

Source-Author: Google APIs <[email protected]>
Source-Date: Wed Jun 24 10:05:15 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: cbf322455cc960260c8c41d9cecaa7c4c3576ce9
Source-Link: googleapis/googleapis@cbf3224
yoshi-automation added a commit to googleapis/python-bigquery-reservation that referenced this pull request Jul 31, 2020
This version of the generator includes a fix to make plugin parameters work properly: googleapis/gapic-generator-typescript#574

PiperOrigin-RevId: 318086414

Source-Author: Google APIs <[email protected]>
Source-Date: Wed Jun 24 10:05:15 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: cbf322455cc960260c8c41d9cecaa7c4c3576ce9
Source-Link: googleapis/googleapis@cbf3224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants