Commits on Source (7)
-
Tristan Van Berkom authored
Also highlight the fact that the plugin can rely on the fetcher's fetch() method getting called before consuming the next item in the list, which is the magick behavior that the git plugin relies on. This is a part of #620
-
Tristan Van Berkom authored
-
Tristan Van Berkom authored
A download URL must be interpreted by the core at `Plugin.configure()` time, even if only employed later on. This is a part of #620
-
Tristan Van Berkom authored
Keeps track of whether the plugin is currently being configured. Adjusted Element and Source classes to call _configure() in place of calling configure() directly. This is a part of #620
-
Tristan Van Berkom authored
The Source must now mention whether the marked or translated URL is "primary" or not. Even when a Source may have multiple URLs, the auxilliary URLs are derived from the primary one, not only is this true for git, but it is mandated by our tracking API which assumes there is a primary URL. This adjusts the `git` source and the test `fetch_source.py` source to behave properly and advertize it's primary URL properly. This is a part of #620
-
Tristan Van Berkom authored
This cannot test for unaliased URLs, as those can be discovered later on outside of user provided element configuration; at least we assert that if an alias was used, we have seen it at load time. This will cause a BUG to occur for a plugin which marks an aliased URL (or attempts to translate one) outside of `Plugin.configure()`, if that URL was not previously seen. This is a part of #620
-
Tristan Van Berkom authored
Source fetcher changes See merge request !772
Showing
- buildstream/element.py 1 addition, 1 deletionbuildstream/element.py
- buildstream/plugin.py 27 additions, 0 deletionsbuildstream/plugin.py
- buildstream/plugins/sources/git.py 13 additions, 4 deletionsbuildstream/plugins/sources/git.py
- buildstream/source.py 93 additions, 24 deletionsbuildstream/source.py
- tests/frontend/project/sources/fetch_source.py 15 additions, 3 deletionstests/frontend/project/sources/fetch_source.py