Instructions don't indicate that a 0.0.0 tag is required for release-flow to work properly
In a .gitlab-ci.yml script like the following:
build-packages:
stage: package
script:
- export THIS_VERSION=$(${VENV_BIN}/release-flow)
# log THIS_VERSION to pipeline log for debugging
- echo ${THIS_VERSION}
- ${VENV_BIN}/build-harness package --release-id ${THIS_VERSION}
extends:
- .wcginfra-base
release-flow fails with the following error:
$ export THIS_VERSION=$(${VENV_BIN}/release-flow)
Unexpected error. Check log for details.
Traceback (most recent call last):
File "/builds/wcgatl/wcginfra/.venv/lib/python3.8/site-packages/build_harness/tools/git.py", line 82, in get_tag_data
result = this_repo.git.describe("--first-parent", "--tags")
File "/builds/wcgatl/wcginfra/.venv/lib/python3.8/site-packages/git/cmd.py", line 545, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/builds/wcgatl/wcginfra/.venv/lib/python3.8/site-packages/git/cmd.py", line 1011, in _call_process
return self.execute(call, **exec_kwargs)
File "/builds/wcgatl/wcginfra/.venv/lib/python3.8/site-packages/git/cmd.py", line 828, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git describe --first-parent --tags
stderr: 'fatal: No names found, cannot describe anything.'
The issue occurred because there are no tags in my repository. After comparing my repo to build-harness, I determined that a "0.0.0" tag is required on the first commit.