From 7233f899d56a92aa77581c14d9a0d176e7e2f10a 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 9bf76c62bbcdd8..6d0312375a5cf8 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)