mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: update version file path and add debug logging for version checks
This commit is contained in:
parent
43f3f54063
commit
d09d281a8d
2 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,8 @@ if type(__version__) is not str:
|
||||||
__version__ = safe_version + "+type"
|
__version__ = safe_version + "+type"
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
print(__version__)
|
||||||
|
print(safe_version)
|
||||||
if version.parse(__version__) < version.parse(safe_version):
|
if version.parse(__version__) < version.parse(safe_version):
|
||||||
__version__ = safe_version + "+less"
|
__version__ = safe_version + "+less"
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
@ -154,8 +154,8 @@ def main():
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(cmd, check=True)
|
||||||
|
|
||||||
# Remove aider/__version__.py if it exists
|
# Remove aider/_version.py if it exists
|
||||||
version_file = "aider/__version__.py"
|
version_file = "aider/_version.py"
|
||||||
if os.path.exists(version_file):
|
if os.path.exists(version_file):
|
||||||
print(f"Removing {version_file}")
|
print(f"Removing {version_file}")
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue