Skip to content

Commit 500f304

Browse files
Lincoln Steinhipsterusername
authored andcommitted
remove choice to update from main and add a warning about tags & branches
1 parent 3579122 commit 500f304

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

invokeai/frontend/install/invokeai_update.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ def welcome(versions: dict):
5454
def text():
5555
yield f"InvokeAI Version: [bold yellow]{__version__}"
5656
yield ""
57-
yield "This script will update InvokeAI to the latest release, or to a development version of your choice."
57+
yield "This script will update InvokeAI to the latest release, or to the development version of your choice."
58+
yield ""
59+
yield "When updating to an arbitrary tag or branch, be aware that the front end may be mismatched to the backend,"
60+
yield "making the web frontend unusable. Please downgrade to the latest release if this happens."
5861
yield ""
5962
yield "[bold yellow]Options:"
6063
yield f"""[1] Update to the latest official release ([italic]{versions[0]['tag_name']}[/italic])
61-
[2] Update to the bleeding-edge development version ([italic]main[/italic])
62-
[3] Manually enter the [bold]tag name[/bold] for the version you wish to update to
63-
[4] Manually enter the [bold]branch name[/bold] for the version you wish to update to"""
64+
[2] Manually enter the [bold]tag name[/bold] for the version you wish to update to
65+
[3] Manually enter the [bold]branch name[/bold] for the version you wish to update to"""
6466

6567
console.rule()
6668
print(
@@ -104,11 +106,11 @@ def main():
104106
if choice == "1":
105107
release = versions[0]["tag_name"]
106108
elif choice == "2":
107-
release = "main"
109+
while not tag:
110+
tag = Prompt.ask("Enter an InvokeAI tag name")
108111
elif choice == "3":
109-
tag = Prompt.ask("Enter an InvokeAI tag name")
110-
elif choice == "4":
111-
branch = Prompt.ask("Enter an InvokeAI branch name")
112+
while not branch:
113+
branch = Prompt.ask("Enter an InvokeAI branch name")
112114

113115
extras = get_extras()
114116

0 commit comments

Comments
 (0)