Jonathan Maw pushed to branch jonathan/workspace-fragment-guess-element at BuildStream / buildstream
Commits:
3 changed files:
Changes:
... | ... | @@ -73,6 +73,11 @@ buildstream 1.3.1 |
73 | 73 |
o Opening a workspace now creates a .bstproject.yaml file that allows buildstream
|
74 | 74 |
commands to be run from a workspace that is not inside a project.
|
75 | 75 |
|
76 |
+ o Specifying an element is now optional for some commands when buildstream is run
|
|
77 |
+ from inside a workspace - the 'build', 'checkout', 'fetch', 'pull', 'push',
|
|
78 |
+ 'shell', 'show', 'track', 'workspace close' and 'workspace reset' commands are
|
|
79 |
+ affected.
|
|
80 |
+ |
|
76 | 81 |
|
77 | 82 |
=================
|
78 | 83 |
buildstream 1.1.5
|
... | ... | @@ -24,6 +24,11 @@ commands: |
24 | 24 |
output: ../source/sessions/developing-build-after-changes.html
|
25 | 25 |
command: build hello.bst
|
26 | 26 |
|
27 |
+# Rebuild, from the workspace
|
|
28 |
+- directory: ../examples/developing/workspace_hello
|
|
29 |
+ output: ../source/sessions/developing-build-after-changes-workspace.html
|
|
30 |
+ command: build
|
|
31 |
+ |
|
27 | 32 |
# Capture shell output with changes
|
28 | 33 |
- directory: ../examples/developing/
|
29 | 34 |
output: ../source/sessions/developing-shell-after-changes.html
|
... | ... | @@ -50,11 +50,16 @@ We can open workspace_hello/hello.c and make the following change: |
50 | 50 |
.. literalinclude:: ../../examples/developing/update.patch
|
51 | 51 |
:language: diff
|
52 | 52 |
|
53 |
-Now, rebuild the hello.bst element
|
|
53 |
+Now, rebuild the hello.bst element.
|
|
54 | 54 |
|
55 | 55 |
.. raw:: html
|
56 | 56 |
:file: ../sessions/developing-build-after-changes.html
|
57 | 57 |
|
58 |
+Note that if you run the command from inside the workspace, the element name is optional.
|
|
59 |
+ |
|
60 |
+.. raw::html
|
|
61 |
+ :file: ../sessions/developing-build-after-changes-workspace.html
|
|
62 |
+ |
|
58 | 63 |
Now running the hello command using bst shell:
|
59 | 64 |
|
60 | 65 |
.. raw:: html
|