Skip to content

Commit

Permalink
mulled-build-tool fix for packages wo version
Browse files Browse the repository at this point in the history
for tools with requirements without version this resulted in a
conda install with requirement=None in the package specs
which does not work
  • Loading branch information
bernt-matthias committed Jan 23, 2025
1 parent 2d629d0 commit d69f6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def requirements_to_mulled_targets(requirements) -> List["CondaTarget"]:
Only package requirements are retained.
"""
package_requirements = [r for r in requirements if r.type == "package"]
target_str = ",".join([f"{r.name}={r.version}" for r in package_requirements])
target_str = ",".join([f"{r.name}={r.version}" if r.version else r.name for r in package_requirements])
targets = target_str_to_targets(target_str)
return targets

Expand Down

0 comments on commit d69f6c4

Please sign in to comment.