mbarkhau / bumpver

BumpVer: Automatic Versioning
https://github.com/mbarkhau/bumpver
MIT License
199 stars 36 forks source link

the version number doesn't update at all #195

Closed lucasjinreal closed 2 years ago

lucasjinreal commented 2 years ago
image
lucasjinreal commented 2 years ago
INFO    - fetching tags from remote (to turn off use: -n / --no-fetch)
INFO    - Old Version: 3.0.3
INFO    - New Version: 3.0.4
ERROR   - No match for pattern '"MAJOR.MINOR.PATCH"'
ERROR   -
# https://regex101.com/?flavor=python&flags=gmx&regex=%5C%22%0A%28%3FP%3Cmajor%3E%5B0-9%5D%2B%29%0A%5C.%0A%28%3FP%3Cminor%3E%5B0-9%5D%2B%29%0A%5C.%0A%28%3FP%3Cpatch%3E%5B0-9%5D%2B%29%0A%5C%22
regex = re.compile(r"""
    \"
    (?P<major>[0-9]+)
    \.
    (?P<minor>[0-9]+)
    \.
    (?P<patch>[0-9]+)
    \"
""", flags=re.VERBOSE)
ERROR   - No match for pattern '"MAJOR.MINOR.PATCH[PYTAGNUM]"'
ERROR   -
# https://regex101.com/?flavor=python&flags=gmx&regex=%5C%22%0A%28%3FP%3Cmajor%3E%5B0-9%5D%2B%29%0A%5C.%0A%28%3FP%3Cminor%3E%5B0-9%5D%2B%29%0A%5C.%0A%28%3FP%3Cpatch%3E%5B0-9%5D%2B%29%0A%28%3F%3A%0A%20%20%20%20%28%3FP%3Cpytag%3Epost%7Crc%7Ca%7Cb%29%0A%20%20%20%20%28%3FP%3Cnum%3E%5B0-9%5D%2B%29%0A%29%3F%0A%5C%22
regex = re.compile(r"""
    \"
    (?P<major>[0-9]+)
    \.
    (?P<minor>[0-9]+)
    \.
    (?P<patch>[0-9]+)
    (?:
        (?P<pytag>post|rc|a|b)
        (?P<num>[0-9]+)
    )?
    \"
""", flags=re.VERBOSE)
ERROR   - Invalid pattern(s)

I dont know what I missed here.

  1. first I using version = "3.1.1rc1" and using MAJOR.MINOR.PATCH[PYTAGNUM], it give me error;
  2. then I using version = "3.1.1" it gives me new error above...

Why such as simple thing made is so complciated????

mbarkhau commented 2 years ago

Again, please learn to read error messages:

Your working directory is not clean. Uncommitted changes in alfred/version.py
lucasjinreal commented 2 years ago

@mbarkhau Why the error msgs then? I can change the file now...