Description
During config comparison, if the change type is REPO_LEVEL_CHANGE
, e.g., generator version updates, the changed library is None
.
The docker run command is
docker run \
--rm \
--quiet \
-u 1001:127 \
-v /home/runner/work/sdk-platform-java/sdk-platform-java:/workspace \
-v /tmp/tmp.OME0CowQYa:/workspace/googleapis \
-e GENERATOR_VERSION=2.50.1-SNAPSHOT \
gcr.io/cloud-devrel-public-resources/java-library-generation:2.50.1-SNAPSHOT \
--generation-config-path=/workspace/generation_config.yaml \
--library-names= \
--api-definitions-path=/workspace/googleapis
However, --library-names=
is interpreted as passing an empty string in python script. As a result, the generation process is skipped due to no library name is specified.
Example running log:
+ docker run --rm --quiet -u 1001:127 -v /home/runner/work/sdk-platform-java/sdk-platform-java:/workspace -v /tmp/tmp.OME0CowQYa:/workspace/googleapis -e GENERATOR_VERSION=2.50.1-SNAPSHOT gcr.io/cloud-devrel-public-resources/java-library-generation:2.50.1-SNAPSHOT --generation-config-path=/workspace/generation_config.yaml --library-names= --api-definitions-path=/workspace/googleapis
Library names is empty string
We should return all library names if repo-level parameter changes.