From 500f3046a9ae72ade91af0b2d0ac8f41926f7d10 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Tue, 5 Sep 2023 07:50:12 -0400 Subject: [PATCH] remove choice to update from main and add a warning about tags & branches --- invokeai/frontend/install/invokeai_update.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/invokeai/frontend/install/invokeai_update.py b/invokeai/frontend/install/invokeai_update.py index 3fe9bb6f97..45a0e8ec0a 100644 --- a/invokeai/frontend/install/invokeai_update.py +++ b/invokeai/frontend/install/invokeai_update.py @@ -54,13 +54,15 @@ def welcome(versions: dict): def text(): yield f"InvokeAI Version: [bold yellow]{__version__}" yield "" - yield "This script will update InvokeAI to the latest release, or to a development version of your choice." + yield "This script will update InvokeAI to the latest release, or to the development version of your choice." + yield "" + yield "When updating to an arbitrary tag or branch, be aware that the front end may be mismatched to the backend," + yield "making the web frontend unusable. Please downgrade to the latest release if this happens." yield "" yield "[bold yellow]Options:" yield f"""[1] Update to the latest official release ([italic]{versions[0]['tag_name']}[/italic]) -[2] Update to the bleeding-edge development version ([italic]main[/italic]) -[3] Manually enter the [bold]tag name[/bold] for the version you wish to update to -[4] Manually enter the [bold]branch name[/bold] for the version you wish to update to""" +[2] Manually enter the [bold]tag name[/bold] for the version you wish to update to +[3] Manually enter the [bold]branch name[/bold] for the version you wish to update to""" console.rule() print( @@ -104,11 +106,11 @@ def main(): if choice == "1": release = versions[0]["tag_name"] elif choice == "2": - release = "main" + while not tag: + tag = Prompt.ask("Enter an InvokeAI tag name") elif choice == "3": - tag = Prompt.ask("Enter an InvokeAI tag name") - elif choice == "4": - branch = Prompt.ask("Enter an InvokeAI branch name") + while not branch: + branch = Prompt.ask("Enter an InvokeAI branch name") extras = get_extras()