genodelabs / goa

Tool for streamlining the development of Genode applications
GNU Affero General Public License v3.0
19 stars 18 forks source link

Add `--search-dir` argument and `search_dir` config #75

Closed jschlatow closed 5 months ago

jschlatow commented 6 months ago

In the scope of #39, Goa became capable of looking up version information from other Goa projects below the current working directory. This way dependent Goa projects can be hosted in a common subdirectory and Goa detects their versions. However, it requires to invoke Goa from the common subdirectory using the -C switch.

In order to simplify this, we should add a --search-dir argument and the corresponding search_dir variable to explicitly set the location from which Goa starts looking for projects to something other than the working directory. For my system_info project, for instance, I can then add a goarc file that sets the search_dir to the path where all the lvgl library projects are located. With this I become able to simply call goa run in the system_info directory without Goa complaining about missing lvgl version information.