Re: [BuildStream] Summary: Workspace related DX features & design
- From: Tom Pollard <tom pollard codethink co uk>
- To: Tristan Van Berkom <tristan vanberkom codethink co uk>, Sander Striker <s striker striker nl>
- Cc: BuildStream <buildstream-list gnome org>
- Subject: Re: [BuildStream] Summary: Workspace related DX features & design
- Date: Fri, 14 Sep 2018 16:17:30 +0100
Hi,
On 14/09/18 04:17, Tristan Van Berkom wrote:
Hi,
On Thu, 2018-09-13 at 12:38 +0100, Sander Striker via BuildStream-list wrote:
Hi,
[...]
2. ============
- Default location to be set at user level, with the standard
levels of
provenance. Both the default directory & --directory at cli are
referring to the 'root' directory in which directories for workspaces
will be created, with each element's workspace named after the
respective elementname as subdirs.
- Multiple workspaces:
~~~~~~~~~~~~~~~~~~~~
bst [project options] workspace open [open options] element1.bst
[workspacename] \
--open [open options] element2.bst [workspace name] \
--open [open options] element2.bst [workspace name] \
...
- [project options] = --directory pathto/project \
...
- [open options] = --directory pathto/workspace \
--no-checkout \
-f --force \
--track \
...
- [workspace name] = optional value to override the default behaviour
of naming workspaces as elementname
I don't think this is the consensus we reached. My impression was that we ended with:
bst [project options] workspace open [--directory DIRECTORY] [open options] ELEMENT
bst [project options] workspace open [open options] ELEMENT [ELEMENT ...]
https://mail.gnome.org/archives/buildstream-list/2018-September/msg00012.html
https://mail.gnome.org/archives/buildstream-list/2018-September/msg00017.html
https://mail.gnome.org/archives/buildstream-list/2018-September/msg00019.html
https://mail.gnome.org/archives/buildstream-list/2018-September/msg00023.html
+1
That is my recollection as well.
* If you want elaborate options which differ for each workspace, then
you need to open workspaces one by one.
* You cannot use the `--directory` option at all if you are opening
multiple workspaces in one go; multiple open requires a default
workspace directory be configured.
* When specifying the directory where the workspace will be created,
the default (if set) is ignored entirely.
Cheers,
-Tristan
Thanks for the clarification here,
We tried to take those into account but also the earlier example you
proposed:
https://mail.gnome.org/archives/buildstream-list/2018-September/msg00007.html
Taking it all into account we were under the assumption that --directory
would be added as a new option to the already existing options for
'open', as well as the ability to have [open options] on a per element
basis if opening multiple at once. The third point is what matching what
we've expressed:
'The --directory option will be taken as the complete path to
the workspace and will override any relevant default paths'
Cheers,
Tom
--
https://www.codethink.co.uk/privacy.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]