harrysarson commented on PR #2097:
URL: https://github.com/apache/buildstream/pull/2097#issuecomment-3569862696

   Hey, testing this a bit more. I did a `bst artifact checkout` and got the 
following crash:
   
   ```
   09:57:28 --:--:--              main:core activity                  BUG     
'buildstream._loader.loadelement.Dependency' object has no attribute 'merge'
   
       Traceback (most recent call last):
         File "/home/harrysarson/bst_pyproject/.venv/bin/bst", line 8, in 
<module>
           sys.exit(cli())
                    ^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 1442, in __call__
           return self.main(*args, **kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/work/buildstream/src/buildstream/_frontend/cli.py", line 
282, in override_main
           original_main(self, args=args, prog_name=prog_name, 
complete_var=None, standalone_mode=standalone_mode, **extra)
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 1363, in main
           rv = self.invoke(ctx)
                ^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 1830, in invoke
           return _process_result(sub_ctx.command.invoke(sub_ctx))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 1830, in invoke
           return _process_result(sub_ctx.command.invoke(sub_ctx))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 1226, in invoke
           return ctx.invoke(self.callback, **ctx.params)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/core.py",
 line 794, in invoke
           return callback(*args, **kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/bst_pyproject/.venv/lib/python3.12/site-packages/click/decorators.py",
 line 46, in new_func
           return f(get_current_context().obj, *args, **kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/work/buildstream/src/buildstream/_frontend/cli.py", line 
1444, in artifact_checkout
           app.stream.checkout(
         File "/home/harrysarson/work/buildstream/src/buildstream/_stream.py", 
line 700, in checkout
           elements = self._load(
                      ^^^^^^^^^^^
         File "/home/harrysarson/work/buildstream/src/buildstream/_stream.py", 
line 1684, in _load
           elements, except_elements, artifacts = 
self._load_elements_from_targets(
                                                  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/harrysarson/work/buildstream/src/buildstream/_stream.py", 
line 1497, in _load_elements_from_targets
           elements, except_elements = self._load_elements([element_names, 
except_targets])
                                       
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/harrysarson/work/buildstream/src/buildstream/_stream.py", 
line 1447, in _load_elements
           elements = self._project.load_elements(targets)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/harrysarson/work/buildstream/src/buildstream/_project.py", 
line 510, in load_elements
           load_elements = self.loader.load(targets)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/work/buildstream/src/buildstream/_loader/loader.py", line 
132, in load
           element = loader._load_file(name, None)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File 
"/home/harrysarson/work/buildstream/src/buildstream/_loader/loader.py", line 
548, in _load_file
           dep_dict[dep.element].merge(dep)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       AttributeError: 'buildstream._loader.loadelement.Dependency' object has 
no attribute 'merge'
   ```


-- 
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