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

Make --bfbs-filenames default to location of first schema file. #6705

Merged
merged 3 commits into from
Jun 22, 2021

Conversation

CasperN
Copy link
Collaborator

@CasperN CasperN commented Jun 21, 2021

As per, #6703 (comment), automatically infer project root to be the directory containing the first provided schema file.

Tradeoffs:
+ specifying --bfbs-filenames=$project_root becomes unnecessary
- users may be surprised that there's order dependent behavior

Make RelativeToProjectRoot always work, applying "../" where needed. This is
needed for backwards compatibility. The first input file may be deeper in some
directory than the other files. Now, there will always be a declaration
file.
@github-actions github-actions bot added c++ codegen Involving generating code from schema labels Jun 21, 2021
@aardappel
Copy link
Collaborator

I'm fine with this, but this sounds exactly like the kind of case that needs to be documented well, as part of --bfbs-filenames at least.

@github-actions github-actions bot added the documentation Documentation label Jun 21, 2021
@CasperN CasperN marked this pull request as ready for review June 22, 2021 14:19
@CasperN CasperN merged commit 71d43f3 into google:master Jun 22, 2021
@CasperN CasperN deleted the rubfbs branch August 16, 2021 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema documentation Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants