You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/08/26 07:43:23 UTC

[buildstream] 02/05: types.py: Add a CoreWarning for unaliased sources

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/bst-1/unaliased-sources
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 503bc52ba429fc0f1755e4ebdaef7b62344bf64c
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Sat Aug 7 16:23:19 2021 +0900

    types.py: Add a CoreWarning for unaliased sources
    
    We should be warning the user if they are using unaliased sources, since
    that means they don't have the ability to mirror them or ensure long term
    repeatability of their builds.
    
    This warning should be allowed to be fatal.
---
 buildstream/types.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/buildstream/types.py b/buildstream/types.py
index d54bf0b..f83aba5 100644
--- a/buildstream/types.py
+++ b/buildstream/types.py
@@ -112,6 +112,12 @@ class CoreWarnings():
     characters in its name.
     """
 
+    UNALIASED_URL = "unaliased-url"
+    """
+    A URL used for fetching a sources was specified without specifying any
+    :ref:`alias <project_source_aliases>`
+    """
+
 
 # _KeyStrength():
 #