Testing the -resume option in Nextflow in the context of a pipeline with modules.
To run the test run from within the repository directory, run the following command:
nextflow run .This will execute the Nextflow pipeline, which should include two processes: hello and test:test_hello, the latter of which is a test module.
The real test is with modifications to the scripts that the pipeline calls.
First, verify the expected behavior with scripts in the bin directory:
touch bin/hello.sh
nextflow run . -resumeThis should cause the hello process to run, as the script has been "modified".
The test:test_hello process will use the cached version, as expected.
Then, modify the test:test_hello script and test wether the -resume option works as expected:
touch modules/test/resources/usr/bin/test_hello.sh
nextflow run . -resumeThis should cause the test:test_hello process to run, as the script has been "modified", however the observed behavior is that both process use the cached version of the script (as of Nextflow version 25.04.6)