diff --git a/conda-store-server/conda_store_server/app.py b/conda-store-server/conda_store_server/app.py index 11c085136..bac136d9f 100644 --- a/conda-store-server/conda_store_server/app.py +++ b/conda-store-server/conda_store_server/app.py @@ -147,6 +147,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 913189b22..d2a452e1d 100644 --- a/conda-store-server/conda_store_server/build.py +++ b/conda-store-server/conda_store_server/build.py @@ -178,6 +178,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( @@ -275,6 +276,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