-
Notifications
You must be signed in to change notification settings - Fork 69
docs: explain default generation config in README.md
#3388
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,36 @@ for additional instructions. | |
|
||
## Prerequisites | ||
|
||
In order to generate a version for each library, a versions.txt has to exist | ||
### Generation configuration | ||
|
||
A generation configuration file is required to generate GAPIC Client Libraries. | ||
|
||
Please refer to [Generation configuration yaml](#generation-configuration-yaml--generation-config-path---optional) | ||
for more information. | ||
|
||
### versions.txt | ||
|
||
In order to generate a version for each library, a `versions.txt` has to exist | ||
in `repository-path`. | ||
Please refer to [Repository path](#repository-path--repositorypath---optional) | ||
for more information. | ||
|
||
## Parameters to generate a repository using the docker image | ||
|
||
### Generation configuration yaml (`generation-config-path`) | ||
### Generation configuration yaml (`generation-config-path`), optional | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add a sentence before this section mentioning something like "All the parameters are optional, but a generation_config.yaml is required"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this to |
||
|
||
An absolute or relative path to a configuration file containing parameters to | ||
generate the repository. | ||
Please refer to [Configuration to generate a repository](#configuration-to-generate-a-repository) | ||
for more information. | ||
|
||
The default value is `$(pwd)/generation_config.yaml`, i.e., `generation_config.yaml` | ||
in the current working directory. | ||
|
||
This will raise `FileNotFoundError` if the specified generation config does not | ||
exist or, in case `generation-config-path` is not specified, the default | ||
generation config does not exist. | ||
|
||
### Repository path (`repository-path`), optional | ||
|
||
The path to where the generated repository goes. | ||
|
@@ -41,8 +57,8 @@ For example, `cd google-cloud-java && python /path/to/entry_point.py ...` withou | |
specifying the `--repository_path` option will modify the `google-cloud-java` | ||
repository the user `cd`'d into. | ||
|
||
Note that versions.txt has to exist in `repository_path` in order to generate | ||
right version for each library. | ||
Note that `versions.txt` has to exist in `repository_path` in order to generate | ||
the right version for each library. | ||
Please refer [here](go/java-client-releasing#versionstxt-manifest) for more info | ||
of versions.txt. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, we would generate a
versions.txt
file if it does not exist. Can you confirm @diegomarquezp ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is not generated. The scripts will just fail if not found.
sdk-platform-java/hermetic_build/library_generation/utils/utilities.py
Lines 124 to 142 in 1080de4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for the quick response!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is required, per
sdk-platform-java/hermetic_build/library_generation/utils/utilities.py
Line 164 in 7d6d66a
Though I think we can create an empty file if not exist since we didn't check the contents.
I'll create a follow-up issue.