mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add Docker image update instructions when AIDER_DOCKER_IMAGE is set
This commit is contained in:
parent
90f1ac2232
commit
35593a1144
1 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import sys
|
||||
import time
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import packaging.version
|
||||
|
@ -50,6 +51,16 @@ def check_version(io, just_check=False):
|
|||
if not is_update_available:
|
||||
return False
|
||||
|
||||
docker_image = os.environ.get("AIDER_DOCKER_IMAGE")
|
||||
if docker_image:
|
||||
text = f"""
|
||||
Newer aider version v{latest_version} is available. To upgrade, run:
|
||||
|
||||
docker pull {docker_image}
|
||||
"""
|
||||
io.tool_error(text)
|
||||
return True
|
||||
|
||||
cmd = utils.get_pip_install(["--upgrade", "aider-chat"])
|
||||
|
||||
text = f"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue