From 085c6b333bb80d61b9152520528251f4578bd214 Mon Sep 17 00:00:00 2001 From: thomas chaton Date: Tue, 20 Dec 2022 06:35:16 +0100 Subject: [PATCH] [App] Change overwrite to True (#16009) Co-authored-by: thomas --- src/lightning_app/cli/lightning_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightning_app/cli/lightning_cli.py b/src/lightning_app/cli/lightning_cli.py index 52a5a09fd1a21..11a26e5279a67 100644 --- a/src/lightning_app/cli/lightning_cli.py +++ b/src/lightning_app/cli/lightning_cli.py @@ -234,7 +234,7 @@ def _run_app( if not os.path.exists(file): original_file = file - file = cmd_install.gallery_apps_and_components(file, True, "latest", overwrite=False) # type: ignore[assignment] # noqa E501 + file = cmd_install.gallery_apps_and_components(file, True, "latest", overwrite=True) # type: ignore[assignment] # noqa E501 if file is None: click.echo(f"The provided entrypoint `{original_file}` doesn't exist.") sys.exit(1)