Description:print_version_info() only works if your current working directory is the 'ria' directory.
If you are in a different git project, it will report the git hash of that project.
If you are not in a git project, the helper function _get_commit_hash() will raise a RunTimeError.
Steps to Reproduce:
Run ria version from the command line outside the ria project directory, or ria.print_version_info() from within a Python environment.
Expected Behavior:
Report the git hash of the installed version of ria.
Actual Behavior:
Report the git hash of the current working directory, If you are in the 'ria' directory, it works as expected, but otherwise it scrapes the wrong hash. Raises a RunTimeError if you are not in a git directory.
Description:
print_version_info()
only works if your current working directory is the 'ria' directory. If you are in a different git project, it will report the git hash of that project. If you are not in a git project, the helper function_get_commit_hash()
will raise aRunTimeError
.Project Area:
ria.diagnostics.print_version_info.py
Steps to Reproduce: Run
ria version
from the command line outside the ria project directory, orria.print_version_info()
from within a Python environment.Expected Behavior: Report the git hash of the installed version of ria.
Actual Behavior: Report the git hash of the current working directory, If you are in the 'ria' directory, it works as expected, but otherwise it scrapes the wrong hash. Raises a
RunTimeError
if you are not in a git directory.