nextflow-io / nextflow-io/nextflow
cloudcache.enabled does not properly enable/disable usage of the nf-cloudcache plugin
Open
Nobody has claimed this yet.
triage/investigate
- Dominant language
- Groovy
- Stars
- 3.5k
- Forks
- 811
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 61
Description
Bug report
- When explicitly including
nf-cloudcacheas a plugin in nextflow config, settingcloudcache.enabled = falsedoes not fully disable the plugin from executing
Expected behavior and actual behavior
- Expected behavior - setting the config option to false should fully disable plugin functionality.
- Actual behavior - right now, it's sort of "half disabled"
- This piece is fully disabled:
https://github.com/nextflow-io/nextflow/blob/22214c5aba6320dd804412b542d26147a7caa38e/modules/nextflow/src/main/groovy/nextflow/Session.groovy#L435-L437 - But this piece is not and will end up executed:
https://github.com/nextflow-io/nextflow/blob/22214c5aba6320dd804412b542d26147a7caa38e/plugins/nf-cloudcache/src/main/nextflow/cache/CloudCacheFactory.groovy#L38-L43
- This piece is fully disabled:
Steps to reproduce the problem
main.nf
workflow {
main:
printf "Hello, World!"
}
nextflow.config
plugins {
id 'nf-cloudcache@0.6.0'
}
cloudcache.enabled = false
Program output
NXF_VER=26.07.0-edge nextflow run .
N E X T F L O W ~ version 26.07.0-edge
Launching `./main.nf` [voluminous_agnesi] revision: f70214ed90
ERROR ~ Cloud-cache path not defined - use either -with-cloudcache run option or NXF_CLOUDCACHE_PATH environment variable
-- Check '.nextflow.log' file for details
Environment
- Nextflow version: 25.10.7, 26.04.6, 26.07.0-edge, syntax parser v1 and v2
- Java version: openjdk version "21.0.11" 2026-04-21 LTS
- Operating system: macOS, linux
- Bash version: zsh 5.9 (arm64-apple-darwin24.0)
Additional context
- We are specifically including the plugin definition to pin the version for the sake of reproducibility
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked sections of modules/nextflow/src/main/groovy/nextflow/Session.groovy and plugins/nf-cloudcache/src/main/nextflow/cache/CloudCacheFactory.groovy. Run the supplied main.nf and nextflow.config reproduction with nf-cloudcache explicitly pinned and cloudcache.enabled=false. Done means the plugin does not execute and the workflow runs without the cloud-cache path error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100