You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:26:00 UTC
[buildstream] 05/09: types.py: Adding CoreWarnings.UNSTAGED_FILES
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch tristan/multi-location-overlaps
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 79e0a3ad4f6374e56009eb051939ff49959206bb
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Sat Sep 12 17:11:33 2020 +0900
types.py: Adding CoreWarnings.UNSTAGED_FILES
Makes the warning fatal if we fail to stage a file because it would have
otherwise overwritten a non-empty directory.
---
src/buildstream/types.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/buildstream/types.py b/src/buildstream/types.py
index 7ba2793..48dd5de 100644
--- a/src/buildstream/types.py
+++ b/src/buildstream/types.py
@@ -100,6 +100,12 @@ class CoreWarnings:
which is not whitelisted. See :ref:`Overlap Whitelist <public_overlap_whitelist>`
"""
+ UNSTAGED_FILES = "unstaged-files"
+ """
+ This warning will be produced when a file cannot be staged. This can happen when
+ a file overlaps with a directory in the sandbox that is not empty.
+ """
+
REF_NOT_IN_TRACK = "ref-not-in-track"
"""
This warning will be produced when a source is configured with a reference
@@ -114,7 +120,7 @@ class CoreWarnings:
BAD_CHARACTERS_IN_NAME = "bad-characters-in-name"
"""
- This warning will be produces when filename for a target contains invalid
+ This warning will be produced when a filename for a target contains invalid
characters in its name.
"""