Hello everyone,
I started to setup my environment, so I forked the
buendia repo and started to follow this
doc about how to setup OpenMRS. It was everything going fine until I ran the the script
tools/openmrs_setup dev and then
I got this error:
Submodule 'db-snapshot' (g...@github.com:mario-areias/db-snapshot) registered for path 'db-snapshot'
Cloning into 'db-snapshot'...
ERROR: Repository not found.
So there is a git submodule configured on buendia repository, but it was looking for this submodule in my github account rather than in buendia account. When I checked the .gitmodules file I found this:
[submodule "client"]
path = client
url = ../client
[submodule "db-snapshot"]
path = db-snapshot
url = ../db-snapshot
The url for these submodules are relative and that's why git was trying to find the submodule in my account. So there a few options to fix this:
1) Change the URLs to use absolute path like: g...@github.com:projectbuendia/db-snapshot.git
2) Everyone who is gonna be a volunteer, will be added to the Project Buendia organisation in github (and there is no need to fork any repo)
3) Every volunteer working on the backend should fork all three repositories (buendia, db-snapshopt, clients)
I don't know how these repositories interact with each other, but I believe solution 1 is the best one. It is simple and easy to do it. Solution 3 is quite annoying and solution 2 is not ideal, specially with so many new contributors joining.
I will make the solution 1 fix in my local to complete the setup. If people are happy with that fix I can make a PR to fix in the buendia repo as well. If there is a better solution than that, please let me know.
Cheers,
Mário