-
Notifications
You must be signed in to change notification settings - Fork 606
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
git checkout of pipeline can be changed mid-execution #2655
Comments
This is a good point. Ideally, this should require having Nextlow to clone the repo as a bare repository. Then, when the execution is launched it should check it out into a sub-directory named as the requested versions |
I would have also expected
The execution of the sub-processes will execute the state in which the code is at the time where those processes are run, not the state in which they were when the pipeline was launched. I may be wrong but it seems that the only solution is to have one working repository per execution? |
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. |
Solving this Issue would be very useful for our team, as this behavior requires being extra careful when developing and running tests on development pipelines. |
Seems to be covered by #2870 which is in our next release milestone |
Bug report
If I start a nextflow run on a particular git revision of a pipeline, and then, while this run is executing, do a nextflow pull or start another nextflow run on a different revision, the pipeline checkout used by the still-executing original run (under ~/.nextflow/assets/scm) will be overwritten, possibly leading to wrong results. Instead, nextflow should create a separate checkout for each git revision (perhaps using git worktree) for which a pipeline run is started, and keep that checkout immutable throughout the pipeline's run.
The text was updated successfully, but these errors were encountered: