levchenkoa opened a new issue, #110:
URL: https://github.com/apache/buildstream-plugins/issues/110

   **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):
     ``` project.con
     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
     ```
     
     ```elements/target.bst 
     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.
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to