Cannot run axii update to setup module database because module information of database missing
Bug Report
Summary and Bug Description
After adding a module A depending on another module B not yet known by axii, it is impossible to add & upgrade the database containing the module info about B to my workspace, because running trying to update the dbs/...
module yields an error while axii does not know module B yet.
Current Behavior
For example, after adding the module h2t/research_projects/jubot/dialog
(A), I cannot upgrade it yet, since its dependency h2t/student_projects/ba_paulin_meigen
(B) is not yet known by axii:
Click to expand
[▽ armarx_new] uqrmq_weberruss@ade-ctl01:~/build/armarx_new/dbs/research_projects/jubot/h2t/research_projects/jubot$ axii w ug -nm h2t/research_projects/jubot/dialog
// axii logo...
❗ Error: Module information for 'h2t/student_projects/ba_paulin_meigen' not found. Tried:
/common/homes/students/uqrmq_weberruss/build/armarx_new/dbs/research_projects/jubot
/common/homes/students/uqrmq_weberruss/build/axii/data/local_modules
/common/homes/students/uqrmq_weberruss/build/axii/data/modules.
Notice that this happens even when I set the -n
flag, which should result in dependencies being ignored (right?)!
Now, I would like to add dbs/student_projects
to my workspace, since it claims the authority for 'h2t/student_projects/*'. However, even though I can add dbs/student_projects
, I cannot update it, since this results in the same error as above:
Click to expand
[▽ armarx_new] uqrmq_weberruss@ade-ctl01:~/build/armarx_new/dbs/research_projects/jubot/h2t/research_projects/jubot$ axii w upgrade -nm dbs/student_projects
// axii logo...
❗ Error: Module information for 'h2t/student_projects/ba_paulin_meigen' not found. Tried:
/common/homes/students/uqrmq_weberruss/build/armarx_new/dbs/research_projects/jubot
/common/homes/students/uqrmq_weberruss/build/axii/data/local_modules
/common/homes/students/uqrmq_weberruss/build/axii/data/modules.
This effectively puts me in a deadlock I can only get out of by removing h2t/research_projects/jubot/dialog
alltogether, then setting up dbs/student_projects
, then adding it back in.
Expected Behavior
I should be able to run axii w upgrade -nm dbs/student_projects
without error, since a) dependencies should be ignored (so another unknown module should not be an issue) and b) this is the exact command I need to run to resolve the error.
Steps to Reproduce
axii w add dbs/research_projects/jubot
axii w ug -m dbs/research_projects/jubot
axii w add h2t/research_projects/jubot
axii w add dbs/student_projects
axii w upgrade -nm dbs/student_projects // will fail because h2t/student_projects/ba_paulin_meigen not found
Diagnosis
Output of axii self report
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Scope ┃ Info ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Axii │ Axii 23.10.2.0 @stable-0 with shell integration │
│ OS │ Ubuntu 18.04.6 LTS │
│ Kernel │ Linux 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 │
│ │ UTC 2023 x86_64 GNU/Linux │
│ Shell │ /bin/bash │
│ Python │ Python 3.6.9 │
│ Pip │ certifi==2023.7.22, charset-normalizer==2.0.12, click==8.0.0, │
│ │ commonmark==0.9.1, cycler==0.11.0, dataclasses==0.8, │
│ │ dbus-python==1.2.18, decorator==5.1.1, distro==1.7.0, gitdb==4.0.9, │
│ │ GitPython==3.1.18, idna==3.4, igraph==0.9.11, │
│ │ importlib-metadata==4.8.3, kiwisolver==1.3.1, matplotlib==3.3.0, │
│ │ networkx==2.5, notify2==0.3.1, numpy==1.19.0, Pillow==8.4.0, │
│ │ pkg_resources==0.0.0, psutil==5.9.4, Pygments==2.14.0, │
│ │ pygraphviz==1.6, pyparsing==3.1.1, PyQt5==5.15.0, │
│ │ PyQt5-sip==12.9.1, python-dateutil==2.8.2, python-igraph==0.9.11, │
│ │ python-Levenshtein==0.12.2, requests==2.26.0, rich==12.6.0, │
│ │ rich-click==1.2.1, six==1.16.0, smmap==5.0.0, texttable==1.6.7, │
│ │ thefuzz==0.19.0, typing_extensions==4.1.1, urllib3==1.26.16, │
│ │ xdg==5.1.1, zipp==3.6.0 │
└────────┴─────────────────────────────────────────────────────────────────────┘