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 move excludes #232

Merged
merged 2 commits into from
Apr 29, 2019
Merged

Fix move excludes #232

merged 2 commits into from
Apr 29, 2019

Conversation

igorbernstein2
Copy link
Contributor

#48 introduced a bug where the exclude path (which is relative to a tracked path) is compared to a source path (which is relative to the source root).
This issue was unnoticed because it works ok when the source path has a single component like in firestore:
https://github.com/googleapis/nodejs-firestore/blob/89afae/synth.py#L19

But breaks when the source path has multiple components like in bigtable:
https://github.com/googleapis/google-cloud-java/blob/264643/google-cloud-clients/google-cloud-bigtable/synth.py#L30

And when the cwd doesn't match the tracked path

googleapis#48 introduced a bug where the exclude path (which is relative to a tracked path) is compared to a source path (which is relative to the source root).
This issue was unnoticed because it works ok when the source path has a single component like in firestore:
https://github.com/googleapis/nodejs-firestore/blob/89afae/synth.py#L19

But breaks when the source path has multiple components like in bigtable:
https://github.com/googleapis/google-cloud-java/blob/264643/google-cloud-clients/google-cloud-bigtable/synth.py#L30

And when the cwd doesn't match the tracked path
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 25, 2019
@igorbernstein2
Copy link
Contributor Author

This is currently blocking:
googleapis/google-cloud-java#5034

@busunkim96 busunkim96 merged commit db08896 into googleapis:master Apr 29, 2019
@igorbernstein2
Copy link
Contributor Author

Thanks for reviewing! Does anything else need to happen for this to be picked up by the next client regen?

@busunkim96
Copy link
Contributor

@igorbernstein2 Autosynth runs synthtool from the master, so nothing else should be necessary. If it's okay to wait the changes should show up on the synth PRs tomorrow morning. (If this needs to go out today we ca re-trigger the Node.js synth job.)

Sorry for the delay in reviewing!

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.

None yet

3 participants