Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read-version: fallback to get_version when git describe fails (#4366)
Annotated git tags are not present in shallow git clones. In shallow clones, git describe may fail with exit 128 with one of the following errors: - No tags can describe <hash> - No names found, cannot describe anything If either message is present, fallback to cloudinit.version.version_string. This fixes readthedocs CI builds which may use git clone --depth 1 in Annotated git tags are not present in shallow git clones. In shallow clones, git describe may fail with exit 128 with one of the following errors: - No tags can describe <hash> - No names found, cannot describe anything If either message is present, fallback to cloudinit.version.version_string. Also pin sphinx=7.1.2 as the release 7.2.0 on August 17 dropped the extension setup_js_tag_helper used by our sphinx builds. This fixes readthedocs CI builds which may use git clone --depth 1 in the doc build process.
- Loading branch information