Environment
- BuildStream 2.7.0
- buildstream-plugins 2.5.0 (git source)
- Python 3.11
Steps to reproduce
Create a project with an element having a git source WITHOUT a ref(never tracked):
name: project
min-version: 2.6
element-path: elements
ref-storage: project.refs
aliases:
my: <repo_name>
plugins:
- origin: pip
package-name: buildstream-plugins
sources:
- git
kind: import
sources:
- kind: git
url: my:one/.git
track: master
Run:
bst show target.bst --format '%{source-info}'
Actual result
BUG 'NoneType' object has no attribute 'rsplit'
buildstream_plugins/sources/git.py, line 1084, in _guess_version
main_split = string.rsplit("-g", 1)
Expected result
source-info should render (version=None or omit) without crashing —
bst show must not fail because one source is not yet tracked.
Environment
Steps to reproduce
Create a project with an element having a git source WITHOUT a ref(never tracked):
kind: import sources: - kind: git url: my:one/.git track: masterRun:
bst show target.bst --format '%{source-info}'Actual result
Expected result
source-info should render (version=None or omit) without crashing —
bst show must not fail because one source is not yet tracked.