Skip to content

Allow running bst commands from subdirectories of project root

Chandan Singh requested to merge chandan/368-bst-from-project-subdir into master

When initializing the project, BuildStream will continue searching for project.conf in parent directories in case it is not found in the current directory.

Fixes #368 (closed).

There's some code duplication between _project.py and _frontend/cli.py as we'd want the autocomplete to also support completing element paths when running from a subdirectory. I don't see an easy way to avoid it but please let me know if you have any suggestions about it.


Things to do before this can be landed:

  • Make auto-complete work with these changes
  • [ ] Ensure absolute/relative paths for elements also work from project subdirectories
  • [ ] Add tests for specifying elements as absolute/relative paths
Edited by Chandan Singh

Merge request reports