Repository navigation
Keep cross-remote linked components on their own branch during update and install - #4646
chenyangsu wants to merge 5 commits into
Conversation
mashehu
left a comment
There was a problem hiding this comment.
Thank you for your contribution.
Could you please do some small modifications?
|
Done: the branch choice is now one helper, |
|
please join the nf-core github org via slack to get the CI running. |
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fixes #4296
When updating a subworkflow from a fork with
--git-remoteand--branch,ComponentUpdateandComponentInstallpassself.branchtoModulesRepofor linked components on other remotes (such asnf-core/modules), raisingLookupErrorwhen that branch does not exist upstream.Fall back to
self.branchonly when a linked component sharesself.current_remote.remote_url(matching the same-remote guardinstall.pyalready uses forself.sha), and preserve recorded cross-remote branches frommodules.jsoninget_components_to_update. Happy to drop themodules.jsonbranch lookup if you prefer using the remote default branch instead.Testing:
pytest tests/components/test_linked_component_branch.py-> 9 passed (5 failed before the fix);ruff check,ruff format --check, andmypy --follow-imports=silentpass.PR checklist
CHANGELOG.mdis updated