From 557bd7cf6181f7c54bd8e3a1a6f455e283247ff7 Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Fri, 8 May 2026 11:16:50 +0100 Subject: [PATCH] Bump nf-co2footprint to 1.3.0 and remove config-warning workaround The 1.3.0 release registers `CO2FootprintConfig` as a `ConfigScope` extension point, so the cosmetic `WARN: Unrecognized config option 'co2footprint.location'` no longer appears. Drop the note that told learners to ignore it. 1.3.0 requires Nextflow >=26.04.0, so bump NXF_VER in the devcontainer. Co-Authored-By: Claude Opus 4.7 (1M context) --- .devcontainer/devcontainer.json | 2 +- .../plugin_development/01_plugin_basics.md | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fa99bfe859..aa54a87f0b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,7 +12,7 @@ // Nextflow installation version "NXF_HOME": "/workspaces/.nextflow", "NXF_EDGE": "0", - "NXF_VER": "25.10.4", + "NXF_VER": "26.04.0", "NXF_SYNTAX_PARSER": "v2", // Other env vars "HOST_PROJECT_PATH": "/workspaces/training", diff --git a/docs/en/docs/side_quests/plugin_development/01_plugin_basics.md b/docs/en/docs/side_quests/plugin_development/01_plugin_basics.md index 32cc5d3e36..19507bd15d 100644 --- a/docs/en/docs/side_quests/plugin_development/01_plugin_basics.md +++ b/docs/en/docs/side_quests/plugin_development/01_plugin_basics.md @@ -509,7 +509,7 @@ Update `nextflow.config`: plugins { id 'nf-hello@0.5.0' id 'nf-schema@2.6.1' - id 'nf-co2footprint@1.2.0' + id 'nf-co2footprint@1.3.0' } ``` @@ -532,7 +532,7 @@ The plugin produces several INFO and WARN messages during execution. These are normal for a small example running on a local machine: ```console title="Output (partial)" -nf-co2footprint plugin ~ version 1.2.0 +nf-co2footprint plugin ~ version 1.3.0 WARN - [nf-co2footprint] Target zone null not found. Attempting to retrieve carbon intensity for fallback zone GLOBAL. INFO - [nf-co2footprint] Using fallback carbon intensity from GLOBAL from CI table: 480.0 gCO₂eq/kWh. WARN - [nf-co2footprint] Executor 'null' not mapped. @@ -598,7 +598,7 @@ Add a `co2footprint` block to `nextflow.config`: plugins { id 'nf-hello@0.5.0' id 'nf-schema@2.6.1' - id 'nf-co2footprint@1.2.0' + id 'nf-co2footprint@1.3.0' } co2footprint { @@ -612,7 +612,7 @@ Add a `co2footprint` block to `nextflow.config`: plugins { id 'nf-hello@0.5.0' id 'nf-schema@2.6.1' - id 'nf-co2footprint@1.2.0' + id 'nf-co2footprint@1.3.0' } ``` @@ -633,11 +633,6 @@ INFO - [nf-co2footprint] Using fallback carbon intensity from GB from CI table: The zone warning is gone. The plugin now uses GB-specific carbon intensity (163.92 gCO₂eq/kWh) instead of the global fallback (480.0 gCO₂eq/kWh). -!!! note - - You may also see a `WARN: Unrecognized config option 'co2footprint.location'` message. - This is cosmetic and can be safely ignored; the plugin still reads the value correctly. - In Part 6, you'll create a configuration scope for your own plugin. This plugin works entirely through the observer mechanism, hooking into workflow lifecycle events to collect resource metrics and generate its report when the pipeline completes.