Sorry to be a pain. When trying to “goa build” a library cloned from Codeberg, I get the following error:
[lvgl_support] Error: In /home/mainuser/Devel/genode_jjk/goa-projects/goarc:
Path variable 'depot_dir' set to '/home/mainuser/Devel/genode_jjk/genode/depot'
defines an invalid path. Valid paths are:
/home/mainuser/Devel/genode_jjk/goa-projects/ports/lvgl_support
You may consider setting 'allowed_paths' in your $HOME/goarc or /goarc file.
(This happens on other libraries also, so it is not specific to this package.)
Could someone say a few words about what this signifies, and/or whether the recommended change is the correct solution, or if there is a deeper root cause?
Thanks!
By default, Goa prevents definition of path variables outside the current working directory or project directory.
This is a security measure (see #99), so Goa requires you to allow this path using a “trusted” goarc file.
2 Likes
Thanks! I was thinking about it a little bit backward.
Now I have another dopey question. With the above fixed, I now get the following error doing “goa build” on the cloned library:
[lvgl_support] Error: depot user 'genodelabs' is not known in depot at /home/mainuser/Devel/genode_jjk/var/depot
I’m not sure where to look for the source of this problem. I’m not trying to publish, so I haven’t dealt with depot users yet (still learning!).
Any pointers would be appreciated!
Goa uses depot archives from genodelabs by default. It initialized the depot directory (typically ./var/depot, or whatever you’ve provided as --depot-dir) only if the directory does not exist. I.e. if you point Goa to an existing depot directory, it will not mess with it.
If you want to use the depot directory from the main genode repository, you need to add the download and pubkey files of the users. You can copy these files from /repos/gems/sculpt/depot/.
1 Like