Skip to content

rattler-build compat: support root-dir setting in .condarc - #6044

Draft
jsmolic wants to merge 3 commits into
conda:mainfrom
jsmolic:bug-6043
Draft

rattler-build compat: support root-dir setting in .condarc#6044
jsmolic wants to merge 3 commits into
conda:mainfrom
jsmolic:bug-6043

Conversation

@jsmolic

@jsmolic jsmolic commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

conda-build supports changing the build root directory with root-dir in .condarc file.
This will get translated internally in conda-build to config.croot when initializing the Config object, which determines the final output path for v1 recipes.

As rattler-build currently doesn't allow decoupling of the package output directory with the source cache and workspaces location, we don't have a way of independently setting the output directory. When both are specified, the configured output directory takes precedence and effectively overrides the root-dir setting.

While at it, add support for passing --croot argument too.

Closes: #6043

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 15, 2026
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Jul 15, 2026
@codspeed-hq

codspeed-hq Bot commented Jul 15, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing jsmolic:bug-6043 (97387b4) with main (f2b6617)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (0006cc5) during the generation of this report, so f2b6617 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

jsmolic added 3 commits July 21, 2026 10:14
conda-build supports changing the build root directory with
`root-dir` in `.condarc` file.
This will get translated internally in conda-build to `config.croot`
when initializing the Config object, which determines the
final output path for v1 recipes.

As rattler-build currently doesn't allow decoupling of the package
output directory with the source cache and workspaces location, we don't
have a way of independently setting the output directory.
When both are specified, the configured output directory takes precedence and
effectively overrides the `root-dir` setting.

While at it, add support for passing `--croot` argument too.

Closes: conda#6043
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

BUG: conda-build rattler implementation errors on conda_build.root-dir setting

2 participants