amoghrajesh commented on PR #34269:
URL: https://github.com/apache/airflow/pull/34269#issuecomment-1715664574
. @potiuk thanks for your review, I further made enhancements to this so
that the error is clearer.
Testing I did, modified the `release-prod-images` command as follows:
```
@release_management.command(
name="release-prod-images", help="Release production images to DockerHub
(needs DockerHub permissions)."
)
@click.option("--airflow-version", required=True, help="Airflow version to
release (2.3.0, 2.3.0rc1 etc.)")
@click.option(
"-d", -> changed
"--dockerhub-repo",
default=APACHE_AIRFLOW_GITHUB_REPOSITORY,
show_default=True,
help="DockerHub repository for the images",
)
@click.option(
"-d", -> changed
"--slim-images",
is_flag=True,
help="Whether to prepare slim images instead of the regular ones.",
)
@click.option(
"-d",
"--limit-python",
type=BetterChoice(CURRENT_PYTHON_MAJOR_MINOR_VERSIONS),
help="Specific python to build slim images for (if not specified - the
images are built for all"
" available python versions)",
)
@click.option(
"-d", -> changed
"--limit-platform",
type=BetterChoice(ALLOWED_PLATFORMS),
default=MULTI_PLATFORM,
show_default=True,
help="Specific platform to build images for (if not specified,
multiplatform images will be built.",
)
@click.option(
"-d", -> changed
"--skip-latest",
is_flag=True,
help="Whether to skip publishing the latest images (so that 'latest'
images are not updated). "
"This should only be used if you release image for previous branches.
Automatically set when "
"rc/alpha/beta images are built.",
)
```
The error we get now is:
```
(new-env) ➜ airflow git:(addVerificationShortBreezeOpts) ✗ breeze setup
regenerate-command-images
-d short flag has duplicate short hand commands under command(s): breeze
release-management release-prod-images for parameters dockerhub_repo and
slim_images
-d short flag has duplicate short hand commands under command(s): breeze
release-management release-prod-images for parameters slim_images and
limit_python
-d short flag has duplicate short hand commands under command(s): breeze
release-management release-prod-images for parameters limit_python and
limit_platform
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]