diff --git a/conda-store-server/conda_store_server/app.py b/conda-store-server/conda_store_server/app.py index 8d68dd138..0771fe864 100644 --- a/conda-store-server/conda_store_server/app.py +++ b/conda-store-server/conda_store_server/app.py @@ -144,6 +144,12 @@ def _check_build_key_version(self, proposal): config=True, ) + conda_flags = Unicode( + "--strict-channel-priority", + help="The flags to be passed through the CONDA_FLAGS environment variable during the environment build", + config=True, + ) + conda_platforms = List( [conda_utils.conda_platform(), "noarch"], help="Conda platforms to download package repodata.json from. By default includes current architecture and noarch", diff --git a/conda-store-server/conda_store_server/build.py b/conda-store-server/conda_store_server/build.py index f2b349b08..d4ded8c8b 100644 --- a/conda-store-server/conda_store_server/build.py +++ b/conda-store-server/conda_store_server/build.py @@ -176,6 +176,7 @@ def build_conda_environment(db: Session, conda_store, build): build.specification.spec ), platforms=settings.conda_solve_platforms, + conda_flags=conda_store.conda_flags, ) conda_store.storage.set( @@ -273,6 +274,7 @@ def solve_conda_environment(db: Session, conda_store, solve: orm.Solve): conda_command=settings.conda_command, specification=schema.CondaSpecification.parse_obj(solve.specification.spec), platforms=[conda_utils.conda_platform()], + conda_flags=conda_store.conda_flags, ) conda_lock_spec = context.result