Deleted Versions used for determining next version
yippie opened this issue · comments
Describe the bug
create_package_version._get_base_version_number()
does not filter out deleted package versions IsDeprecated=true this means if you ever accidentally make a higher version number, create_package_version will keep trying to make much larger version numbers than desired or expected.
Please add the filter IsDeprecated=true
to the version query to match what is seen in sf package version list
Reproduction steps
- Create version 1.0.0 and version 2.0.0 of a package
- Delete 2.0.0 with
sf package version delete
command - Run
cci task run create_package_version
to make a new package version
Expected: Version 1.0.0.NEXT created
Actual: Version 2.0.0.NEXT is created instead.
Your CumulusCI and Python versions
CumulusCI version: 3.84.1 (/Users/kai.amundsen/.local/bin/cci)
Python version: 3.10.9 (/Users/kai.amundsen/.local/pipx/venvs/cumulusci/bin/python)
Operating System
macOS Sonoma 14.1.1
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
No response