Skip to content

Conversation

@baszalmstra
Copy link
Contributor

Add an experimental configuration option to the rattler-build backend
that enables experimental features in rattler-build, such as the cache:
functionality for multi-output recipes.

The configuration is accessible via:

[package.build.config]
experimental = true

The merge behavior for target-specific configs uses OR logic - if either
the base config or any matching target config has it enabled, experimental
features will be enabled.

Fixes #468

Add an `experimental` configuration option to the rattler-build backend
that enables experimental features in rattler-build, such as the `cache:`
functionality for multi-output recipes.

The configuration is accessible via:
```toml
[package.build.config]
experimental = true
```

The merge behavior for target-specific configs uses OR logic - if either
the base config or any matching target config has it enabled, experimental
features will be enabled.

Fixes #468
The `experimental` config option can now only be set at the root
`[package.build.config]` level. Setting it in target-specific
configurations (e.g., `[package.build.target.linux-64.config]`)
will return an error.

This behavior is consistent with how `debug_dir` is handled.
Change the `experimental` field from `bool` to `Option<bool>` so we can
detect when a user explicitly specifies it in a target configuration
(even if the value is `false`).

This ensures that any explicit specification of `experimental` in a
target-specific config will return an error, not just `true` values.
Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@baszalmstra baszalmstra enabled auto-merge (squash) December 2, 2025 15:11
@baszalmstra
Copy link
Contributor Author

@Hofer-Julian Any idea what this CI failure entails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add extra-args config option to pixi-build-rattler-build backend

4 participants