summaryrefslogtreecommitdiff
path: root/buildstream/data
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-02-20 20:32:21 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-16 17:21:15 +0900
commit9543d0784975c1623b543379207a31b118026418 (patch)
tree92ec1f68009e63c4b0001efa9131dd992794c952 /buildstream/data
parent3861de9bc600a4ed24b1fc3c74133848e3d2a7e7 (diff)
downloadbuildstream-9543d0784975c1623b543379207a31b118026418.tar.gz
_project.py and docs: Move defaults into the defaults yaml file
Over time, the _project.py module has regressed into expressing some defaults only hard coded into the python file instead of properly exposing their default in the base configuration file in data/projectconfig.yaml, where the default values can be observed by users. This patch rectifies that, and also restructures the relevant surrounding documentation a bit.
Diffstat (limited to 'buildstream/data')
-rw-r--r--buildstream/data/projectconfig.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/buildstream/data/projectconfig.yaml b/buildstream/data/projectconfig.yaml
index f2ac83397..7bbcf69e0 100644
--- a/buildstream/data/projectconfig.yaml
+++ b/buildstream/data/projectconfig.yaml
@@ -1,6 +1,19 @@
# Default BuildStream project configuration.
+# General configuration defaults
+#
+
+# Require format version 0
+format-version: 0
+
+# Overlaps are just warnings
+fail-on-overlap: False
+
+# Elements are found at the project root
+element-path: .
+
+
# Variable Configuration
#
variables:
@@ -172,3 +185,12 @@ split-rules:
%{datadir}/zoneinfo
- |
%{datadir}/zoneinfo/**
+
+
+# Default behavior for `bst shell`
+#
+shell:
+
+ # Command to run when `bst shell` does not provide a command
+ #
+ command: [ 'sh', '-i' ]