summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-12-30 21:35:17 +0000
committerChandan Singh <csingh43@bloomberg.net>2018-12-30 21:35:17 +0000
commite8b06983a9fe8b5ba78ab75a13cdd0636e0d7323 (patch)
tree67592d6ccc7ee1119bf473296d223dba0be3f9c6
parent8bd042c26eccb3d966f394d3dca25bf93bec1d8a (diff)
downloadbuildstream-chandan/element-filename-requirements.tar.gz
doc: Add note about valid element nameschandan/element-filename-requirements
-rw-r--r--doc/source/format_declaring.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/source/format_declaring.rst b/doc/source/format_declaring.rst
index 57ea4488a..714e1fa33 100644
--- a/doc/source/format_declaring.rst
+++ b/doc/source/format_declaring.rst
@@ -526,3 +526,27 @@ read-only variables are also dynamically declared by BuildStream:
build, support for this is conditional on the element type
and the build system used (any element using 'make' can
implement this).
+
+
+Naming elements
+---------------
+When naming the element files, use the following rules:
+
+* The name of the file must have ``.bst`` extension.
+
+* All characters in the name must be printable 7-bit ASCII characters.
+
+* Following characters are reserved and must not be part of the name:
+
+ - ``<`` (less than)
+ - ``>`` (greater than)
+ - ``:`` (colon)
+ - ``"`` (double quote)
+ - ``/`` (forward slash)
+ - ``\`` (backslash)
+ - ``|`` (vertical bar)
+ - ``?`` (question mark)
+ - ``*`` (asterisk)
+
+BuildStream will attempt to raise warnings when any of these rules are violated
+but that may not always be possible.