Repository navigation
Conversation
pavelzw
force-pushed
the
publish-exclude-newer
branch
from
October 28, 2026 01:54
f916e78 to
5c82a0a
Compare
pavelzw
commented
Oct 28, 2026
Comment on lines
-685
to
+687
| // When running `pixi publish`, the exclude_newer config is ignored; | ||
| // it only matters when using the package as a source dependency. | ||
| // Build with the `exclude-newer` of the workspace, the same cutoff that | ||
| // applies when the package is built as a source dependency of the | ||
| // workspace. |
Collaborator
Author
There was a problem hiding this comment.
right now, pixi publish only works if there is a workspace anyway. in that case, we can also use the exclude-newer from said workspace.
might make things simpler?
pavelzw
marked this pull request as ready for review
October 28, 2026 01:55
pavelzw
force-pushed
the
publish-exclude-newer
branch
from
October 28, 2026 08:18
5c82a0a to
99ab6b6
Compare
pavelzw
force-pushed
the
publish-exclude-newer
branch
2 times, most recently
from
October 28, 2026 14:26
886fda3 to
96607f6
Compare
lucascolley
force-pushed
the
publish-exclude-newer
branch
from
October 28, 2026 14:58
96607f6 to
a95ba2c
Compare
pavelzw
force-pushed
the
publish-exclude-newer
branch
from
October 30, 2026 17:02
a95ba2c to
0bac1fc
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on #7385.
pixi publish(andpixi build, which forwards to it) built withexclude_newer: None, so neither the workspace'sexclude-newernor any other cutoff applied to the build and host dependencies of published packages. The same package built as a source dependency of the workspace did honor the cutoff, so publish could build against packages the workspace considers too new.Publish now resolves the
exclude-newerof the workspace's default environment (with channel cutoffs and exemptions, like a solve of that environment) and passes it to both the backend metadata and the package builds.Standalone packages
Publishing a package without a workspace isn't supported yet:
pixi publishon a package-onlypixi.tomlor a barerecipe.yamlfails withcould not find pixi.toml or pyproject.toml with tool.pixi. Once it is, such a build has no manifest cutoff, and thedefault-exclude-newerof the configuration (#7385) is the natural fallback, like forpixi exec. That's not part of this PR, as there is no code path for it yet.How Has This Been Tested?
Integration test: a package with a host dependency from a channel whose packages are all newer than the channel's
exclude-newerfails to publish with "uploaded after the cutoff date", and publishes once the cutoff is removed.AI Disclosure
Tools: Claude Code
Checklist:
schema/model.py.