You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] - [gen-build-spec command raises an error when the build tool is not supported] #1302
When attempting to generate a build spec with Macaron and the provided purl type does not correspond to a supported build tool, Macaron raises an exception instead of gracefully handling the unsupported tool.
File "/.venv/lib64/python3.12/site-packages/macaron/build_spec_generator/common_spec/core.py", line 384, in gen_generic_build_spec
ECOSYSTEMS[purl.type.upper()].value(base_build_spec_dict).resolve_fields(purl)
File "/.venv/lib64/python3.12/site-packages/macaron/build_spec_generator/common_spec/maven_spec.py", line 122, in resolve_fields
patched_build_commands = patch_commands(
^^^^^^^^^^^^^^^
File "/.venv/lib64/python3.12/site-packages/macaron/build_spec_generator/build_command_patcher.py", line 164, in patch_commands
patch_cli_commands = _patch_commands(
^^^^^^^^^^^^^^^^
File "/.venv/lib64/python3.12/site-packages/macaron/build_spec_generator/build_command_patcher.py", line 89, in _patch_commands
if cli_parser.is_build_tool(cmds[0]):
Activity