Skip to content

Support invoking buildstream from a workspace outside a project

Jonathan Maw requested to merge jonathan/workspace-fragment-create into master

Description

A workflow that is currently poorly-supported is to keep all one's workspaces in one place, and working on multiple projects at once - i.e. workspaces are outside of any project. Currently, this is inconvenient because it means you have to pass the project's directory on the command-line when invoking buildstream. This MR aims to fix that.

Changes proposed in this merge request:

  • A .bstproject.yaml file is created in a workspace's root when it's opened, and deleted when the workspace is closed. This file stores a path to the project that opened this workspace.
  • When running buildstream commands, if a project.conf fails to be found, search for a .bstproject.yaml and use the project path stored in there, instead.

This merge request is part of #222 (closed)


Edited by Jonathan Maw

Merge request reports