Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List: capture git errors for local workflows #402

Merged
merged 4 commits into from
Oct 5, 2019

Conversation

ewels
Copy link
Member

@ewels ewels commented Oct 5, 2019

Handle exceptions due to detached HEAD refs in the local pulls of remote workflows.
Prints a helpful message about how to fix.

Fixes #297

$ nf-core list

                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'


ERROR: Could not fetch status of Nextflow copy of nf-core/chipseq:
   HEAD is a detached symbolic reference as it points to '3207ff80b2cf8034b97cf1b6f054581e9b1b10f9'

It's probably a good idea to delete this local copy and pull again:
   rm -rf /Users/ewels/.nextflow/assets/nf-core/chipseq
   nextflow pull nf-core/chipseq

Name                       Version    Released       Last Pulled    Have latest release?
-------------------------  ---------  -------------  -------------  ----------------------
nf-core/smrnaseq           1.0.0      2 weeks ago    -              -
nf-core/mhcquant           1.3        2 months ago   -              -
nf-core/ampliseq           1.1.0      3 months ago   -              -
nf-core/hlatyping          1.1.5      3 months ago   8 months ago   No
nf-core/eager              2.0.7      4 months ago   -              -
nf-core/chipseq            1.0.0      4 months ago                  No
nf-core/rnafusion          1.0.2      5 months ago   6 months ago   No
[...]

Handle exceptions due to detached HEAD refs in the local pulls of remote workflows.
Prints a helpful message about how to fix.

Fixes nf-core#297
@drpatelh
Copy link
Member

drpatelh commented Oct 5, 2019

Nice 👍

@ewels
Copy link
Member Author

ewels commented Oct 5, 2019

Travis passing ✅

@drpatelh
Copy link
Member

drpatelh commented Oct 5, 2019

Merge conflict here now 😅

@ewels
Copy link
Member Author

ewels commented Oct 5, 2019

Bloody changelog 😆

@ewels
Copy link
Member Author

ewels commented Oct 5, 2019

I guess this serves me right for opening so many PRs in parallel... 🤦‍♂

@drpatelh
Copy link
Member

drpatelh commented Oct 5, 2019

💥

@ewels ewels merged commit 29b3e0f into nf-core:dev Oct 5, 2019
@ewels ewels deleted the list-handle-exceptions branch October 5, 2019 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants