mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
feat: add git hash to development version
This commit is contained in:
parent
61393017d2
commit
aee501d128
1 changed files with 15 additions and 0 deletions
|
@ -1 +1,16 @@
|
|||
__version__ = "0.54.8-dev"
|
||||
|
||||
"""
|
||||
[[[cog
|
||||
# TODO: write python to emit `git_hash = "X"`, where X is the latest 7-char git hash
|
||||
# python goes here
|
||||
]]]
|
||||
"""
|
||||
git_hash = "deadbee"
|
||||
"""
|
||||
[[[end]]]
|
||||
"""
|
||||
|
||||
if '-dev' in __version__:
|
||||
xyz = __version__.split("-")[0]
|
||||
__version__ = xyz + "-dev+" + git_hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue