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

-stub-run as first option causes failure #3437

Open
keiranmraine opened this issue Nov 25, 2022 · 4 comments · May be fixed by #3600
Open

-stub-run as first option causes failure #3437

keiranmraine opened this issue Nov 25, 2022 · 4 comments · May be fixed by #3600
Labels

Comments

@keiranmraine
Copy link

Bug report

Expected behavior and actual behavior

The order of Nextflow run options shouldn't matter.

For a local configuration with a test profile defined, specifying the -stub-run or -stub option prior to -profile <profile> results in an error.

Steps to reproduce the problem

https://github.com/cynapse-ccri/ExpansionHunter/releases/tag/0.3.0

Works:

$ nextflow run -profile test -stub-run main.nf

Fails:

$ nextflow run -stub-run -profile test main.nf

Program output

N E X T F L O W  ~  version 22.10.3
Pulling nextflow-io/true ...
WARN: Cannot read project manifest -- Cause: Remote resource not found: https://api.github.com/repos/nextflow-io/true/contents/nextflow.config
Remote resource not found: https://api.github.com/repos/nextflow-io/true/contents/main.nf

Working .nextflow.log
Failing .nextflow.log

Environment

  • Nextflow version: 22.10.3
  • Java version: openjdk 17.0.5 2022-10-1
  • Operating system: Debian GNU/Linux 11 (bullseye) (GitHub codespace)
  • Bash version: GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 10, 2023
@pditommaso pditommaso removed the stale label Jun 12, 2023
@setshabaTaukobong
Copy link

Hi, Im seeing the same issue on my side. Has this been resolved?

@bentsherman
Copy link
Member

I think this has to do with how the CLI options are parsed. With the run command you should always specify the pipeline first, e.g. run main.nf [options]. If you don't, it may fail in certain cases.

This issue should be fixed with the new CLI (#3600)

@bentsherman bentsherman linked a pull request Oct 10, 2023 that will close this issue
6 tasks
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants