From 036ba568f9280c7ab63be8526ef11f7fbb06d5d1 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Thu, 17 Jul 2025 18:42:09 +0200 Subject: [PATCH 1/2] Add protected base environment example --- examples/protected_base/construct.yaml | 30 ++++++++++++++++++++++++++ examples/protected_base/frozen.json | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 examples/protected_base/construct.yaml create mode 100644 examples/protected_base/frozen.json diff --git a/examples/protected_base/construct.yaml b/examples/protected_base/construct.yaml new file mode 100644 index 000000000..e8fefeefc --- /dev/null +++ b/examples/protected_base/construct.yaml @@ -0,0 +1,30 @@ +# yaml-language-server: $schema=../../constructor/data/construct.schema.json +"$schema": "../../constructor/data/construct.schema.json" + +name: ProtectedBaseEnv +version: X +installer_type: all + +channels: + - conda-forge + +specs: + - python=3.10 + - conda + - conda-self + - miniforge_console_shortcut # [win] + +extra_envs: + default: + specs: + - python=3.10 + - pip + +write_condarc: true +condarc: + channels: + - conda-forge + default_activation_env: default + +extra_files: + - frozen.json: conda-meta/frozen diff --git a/examples/protected_base/frozen.json b/examples/protected_base/frozen.json new file mode 100644 index 000000000..4df73c8fc --- /dev/null +++ b/examples/protected_base/frozen.json @@ -0,0 +1,3 @@ +{ + "message": "You shall not edit your `base` environment! Use `conda self` if you must." +} \ No newline at end of file From fbaf905e35cd18a20a52bc9e530c0441704765d6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 08:12:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/protected_base/construct.yaml | 2 +- examples/protected_base/frozen.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/protected_base/construct.yaml b/examples/protected_base/construct.yaml index e8fefeefc..87afd7509 100644 --- a/examples/protected_base/construct.yaml +++ b/examples/protected_base/construct.yaml @@ -22,7 +22,7 @@ extra_envs: write_condarc: true condarc: - channels: + channels: - conda-forge default_activation_env: default diff --git a/examples/protected_base/frozen.json b/examples/protected_base/frozen.json index 4df73c8fc..e5a13bd4b 100644 --- a/examples/protected_base/frozen.json +++ b/examples/protected_base/frozen.json @@ -1,3 +1,3 @@ { "message": "You shall not edit your `base` environment! Use `conda self` if you must." -} \ No newline at end of file +}