BUG: print_version_info()
doesn't work outside of ria directory
#23
Labels
bug 🐞
There is a problem, error, or unexpected behaviour
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.The text was updated successfully, but these errors were encountered: