Skip to content

feat: Remove exclude_newer from rattler_lock, add package_cutoffs#2296

Merged
baszalmstra merged 13 commits intoconda:mainfrom
pavelzw:exclude-newer
Apr 7, 2026
Merged

feat: Remove exclude_newer from rattler_lock, add package_cutoffs#2296
baszalmstra merged 13 commits intoconda:mainfrom
pavelzw:exclude-newer

Conversation

@pavelzw
Copy link
Copy Markdown
Member

@pavelzw pavelzw commented Mar 28, 2026

Description

required for prefix-dev/pixi#5786

i think a configuration as follows would be easiest to understand in pixi.toml:

[workspace]
channels = [
  { url = "https://my.private/channel", exclude-newer = "0d" },
  "https://prefix.dev/conda-forge",
]
exclude-newer = "7d"

[dependencies]
polars = { version = "*", exclude-newer = "0d" } # some vulnerability

[constraints]
openssl = { exclude-newer = "0d" } # some vulnerability of an implicit dependency

i.e. a three-layer system, global exclude-newer < channel-wide exclude-newer < package-override exclude-newer. this allows us to use only the notion exclude-newer across different context instead of introducing something like exclude-newer = false.

How Has This Been Tested?

unit tests

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Codex

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.

@pavelzw pavelzw changed the title feat: Use ExcludeNewer in rattler_lock feat: Add exclude_newer in rattler_lock, add package_cutoffs Mar 29, 2026
@pavelzw pavelzw marked this pull request as ready for review March 29, 2026 19:23
@pavelzw pavelzw requested a review from baszalmstra March 29, 2026 19:23
@pavelzw pavelzw changed the title feat: Add exclude_newer in rattler_lock, add package_cutoffs feat: Extend exclude_newer, add package_cutoffs Mar 29, 2026
@pavelzw pavelzw marked this pull request as draft March 29, 2026 22:59
@pavelzw pavelzw changed the title feat: Extend exclude_newer, add package_cutoffs feat: Remove exclude_newer from rattler_lock, add package_cutoffs Mar 31, 2026
@pavelzw pavelzw marked this pull request as ready for review March 31, 2026 15:25
@baszalmstra baszalmstra merged commit b12d7c8 into conda:main Apr 7, 2026
18 of 19 checks passed
@pavelzw pavelzw deleted the exclude-newer branch April 7, 2026 11:24
@github-actions github-actions bot mentioned this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants