diff --git a/packages/build/src/log/messages/compatibility.ts b/packages/build/src/log/messages/compatibility.ts index b2d618e72c..40a730d5fb 100644 --- a/packages/build/src/log/messages/compatibility.ts +++ b/packages/build/src/log/messages/compatibility.ts @@ -140,10 +140,10 @@ const getUpgradeInstruction = function (loadedFrom, origin) { } if (origin === 'ui') { - return 'To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)' + return 'To upgrade this plugin, go to Project Configuration > Build & deploy > Build settings in your site dashboard' } - return 'To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)' + return 'To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead' } // Print a warning message when plugins are using a version that is too recent diff --git a/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/index.js b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/index.js new file mode 100644 index 0000000000..5af9c00980 --- /dev/null +++ b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/index.js @@ -0,0 +1,3 @@ +export const onPreBuild = function () { + console.log('test') +} diff --git a/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/manifest.yml b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/manifest.yml new file mode 100644 index 0000000000..a3512f0259 --- /dev/null +++ b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/manifest.yml @@ -0,0 +1,2 @@ +name: test +inputs: [] diff --git a/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/package.json b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/package.json new file mode 100644 index 0000000000..fdff3703df --- /dev/null +++ b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/package.json @@ -0,0 +1,8 @@ +{ + "name": "netlify-plugin-contextual-env", + "version": "0.2.0", + "type": "module", + "description": "test", + "license": "MIT", + "repository": "test" +} diff --git a/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/package.json b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/package.json new file mode 100644 index 0000000000..0f782f6215 --- /dev/null +++ b/packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/package.json @@ -0,0 +1,12 @@ +{ + "name": "netlify-local-plugins", + "description": "This directory contains Build plugins that have been automatically installed by Netlify.", + "version": "1.0.0", + "type": "module", + "private": true, + "author": "Netlify", + "license": "MIT", + "dependencies": { + "netlify-plugin-contextual-env": "0.3.0" + } +} diff --git a/packages/build/tests/plugins_list/snapshots/tests.js.md b/packages/build/tests/plugins_list/snapshots/tests.js.md index 54f6d4b033..be1de06632 100644 --- a/packages/build/tests/plugins_list/snapshots/tests.js.md +++ b/packages/build/tests/plugins_list/snapshots/tests.js.md @@ -60,7 +60,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Use plugins cached in .netlify/plugins/ @@ -115,7 +118,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not use plugins cached in .netlify/plugins/ if outdated @@ -173,7 +179,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Fetches the list of plugin versions @@ -228,7 +237,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Only prints the list of plugin versions in verbose mode @@ -266,7 +278,10 @@ Generated by [AVA](https://avajs.dev). Netlify Build Complete ␊ ────────────────────────────────────────────────────────────────␊ ␊ - (Netlify Build completed in 1ms)` + (Netlify Build completed in 1ms)␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Uses fallback when the plugins fetch fails @@ -324,7 +339,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Uses fallback when the plugins fetch succeeds with an invalid response @@ -385,7 +403,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Can execute local binaries when using .netlify/plugins/ @@ -440,7 +461,12 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Can require site dependencies when using .netlify/plugins/ @@ -495,7 +521,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Works with .netlify being a regular file @@ -553,7 +582,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Print a warning when using plugins not in plugins.json nor package.json @@ -660,7 +692,12 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Prints outdated plugins installed in package.json @@ -719,7 +756,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Prints incompatible plugins installed in package.json @@ -777,7 +817,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not print incompatible plugins installed in package.json if major version is same @@ -832,7 +875,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not print incompatible plugins installed in package.json if not using the compatibility field @@ -887,7 +933,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify non-matching compatibility.nodeVersion @@ -935,7 +984,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-1-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -949,7 +998,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins ignore compatibility entries without conditions unless pinned @@ -997,7 +1049,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-1-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1011,7 +1063,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins does not ignore compatibility entries without conditions if pinned @@ -1059,7 +1114,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1073,7 +1128,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins ignore compatibility conditions if pinned @@ -1121,7 +1179,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1135,7 +1193,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify matching compatibility.nodeVersion @@ -1183,7 +1244,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1197,7 +1258,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins compatibility defaults to version field @@ -1255,7 +1319,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify compatibility.migrationGuide @@ -1304,7 +1371,7 @@ Generated by [AVA](https://avajs.dev). > Outdated plugins␊ - netlify-plugin-contextual-env 0-1-0: latest version is 0-3-0␊ Migration guide: http://test.com␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1318,7 +1385,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify matching compatibility.siteDependencies @@ -1366,7 +1436,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1380,7 +1450,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify non-matching compatibility.siteDependencies @@ -1438,7 +1511,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify non-existing compatibility.siteDependencies @@ -1496,7 +1572,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify multiple non-matching compatibility conditions @@ -1554,7 +1633,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify multiple matching compatibility conditions @@ -1602,7 +1684,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1616,7 +1698,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugins can specify non-matching compatibility.siteDependencies range @@ -1664,7 +1749,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-2-0: latest version is 0-3-0␊ - To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)␊ + To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -1678,7 +1763,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugin versions can be feature flagged @@ -1736,7 +1824,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugin versions that are feature flagged are ignored if no matching feature flag @@ -1794,7 +1885,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Plugin pinned versions that are feature flagged are not ignored if pinned but no matching feature flag @@ -1852,7 +1946,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Compatibility order take precedence over the `featureFlag` property @@ -1910,7 +2007,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Pin plugin versions @@ -1969,7 +2069,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Report updatePlugin API error without failing the build @@ -2056,7 +2159,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not report 404 updatePlugin API error @@ -2115,7 +2221,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Only pin plugin versions in production @@ -2174,7 +2283,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin versions without an API token @@ -2233,7 +2345,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin versions without a siteId @@ -2291,7 +2406,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin versions if the build failed @@ -2374,6 +2492,8 @@ Generated by [AVA](https://avajs.dev). origin: ui␊ package: netlify-plugin-contextual-env␊ ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)␊ node: bad option: --invalid` ## Do not pin plugin versions if the plugin failed @@ -2421,6 +2541,10 @@ Generated by [AVA](https://avajs.dev). > Loading plugins␊ - netlify-plugin-contextual-env 0-3-0 from Netlify app (latest 0-3-0, expected 0-3-0, compatible 0-3-0)␊ ␊ + netlify-plugin-contextual-env (onPreBuild event) ␊ + ────────────────────────────────────────────────────────────────␊ + ␊ + ␊ Plugin "netlify-plugin-contextual-env" failed ␊ ────────────────────────────────────────────────────────────────␊ ␊ @@ -2450,7 +2574,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin versions if the build was installed in package.json @@ -2509,7 +2636,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin versions if already pinned @@ -2558,7 +2688,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-3-0: latest version is 1-0-0␊ - To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)␊ + To upgrade this plugin, go to Project Configuration > Build & deploy > Build settings in your site dashboard␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -2572,7 +2702,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Pinning plugin versions takes into account the compatibility field @@ -2621,7 +2754,7 @@ Generated by [AVA](https://avajs.dev). ␊ > Outdated plugins␊ - netlify-plugin-contextual-env 0-3-0: latest version is 1-0-0␊ - To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)␊ + To upgrade this plugin, go to Project Configuration > Build & deploy > Build settings in your site dashboard␊ ␊ netlify-plugin-contextual-env (onPreBuild event) ␊ ────────────────────────────────────────────────────────────────␊ @@ -2635,7 +2768,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Do not pin plugin with prerelease versions @@ -2694,7 +2830,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Pin netlify.toml-only plugin versions @@ -2753,7 +2892,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if there are no matching plugin runs @@ -2812,7 +2954,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if there are no plugin runs @@ -2871,7 +3016,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if there are no matching plugin runs version @@ -2930,7 +3078,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Fails the build when pinning netlify.toml-only plugin versions and the API request fails @@ -3061,7 +3212,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if installed in UI @@ -3120,7 +3274,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if installed in package.json @@ -3179,7 +3336,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if there are no API token @@ -3238,7 +3398,10 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` ## Does not pin netlify.toml-only plugin versions if there are no site ID @@ -3296,4 +3459,7 @@ Generated by [AVA](https://avajs.dev). ────────────────────────────────────────────────────────────────␊ ␊ (Netlify Build completed in 1ms)␊ - Build step duration: Netlify Build completed in 1ms` + Build step duration: Netlify Build completed in 1ms␊ + ␊ + (node:80) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.␊ + (Use \`node --trace-warnings ...\` to show where the warning was created)` diff --git a/packages/build/tests/plugins_list/snapshots/tests.js.snap b/packages/build/tests/plugins_list/snapshots/tests.js.snap index 28839faa40..95c0adac71 100644 Binary files a/packages/build/tests/plugins_list/snapshots/tests.js.snap and b/packages/build/tests/plugins_list/snapshots/tests.js.snap differ