-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths and imported configurations #80
Comments
Correct, it should resolve with regard to the file that imports the project, similar to all programming languages. |
Actually, I think that the way it works now is rather useful. You can drop a configuration file with the list of projects in the directory where you checkout your repos without worrying about the actual path; then, to use them you just need to include that file. Aside, I noticed that you use Bottom line, I believe that the way |
Thanks, I will update the documentation to include that information as you say, it's very useful to know about it! Mani is still v1 so breaking changes will occur, but this won't be one of them! |
This is not a bug report but just a request for the confirmation of the behaviour of
mani
w.r.t. the relative paths of imported configuration files. The documentation says that relative project paths are resolved w.r.t. to the config file; but in the case that projects are defined in an included configuration file, it's not clear whether they are resolved w.r.t. the path of the included or the including (root) configuration file. Apparently,mani
takes the former approach (i.e., path of the included file, see below). I think that it's fine (actually rather useful), but I'd like to ask whether this is the intended behaviour and we can count on that also for future releases. I think that it should be mentioned in the documentation to avoid ambiguities.The example below demonstrates the behaviour:
Directory structure
❯ tree . ├── projects │ ├── mani_projects.yaml │ ├── project1 │ └── project2 └── tools └── mani.yaml
Configuration files
Showing the directories of the projects
The text was updated successfully, but these errors were encountered: