Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: split capability retrieval from initialize #2831

Merged

Conversation

tdejager
Copy link
Contributor

@tdejager tdejager commented Jan 3, 2025

This splits the capabilities retrieval from the initialize, I will have to update the backends for this in a seperate PR. The main upside of this is that the intialize method can be versioned, which was not the case.

@tdejager tdejager linked an issue Jan 3, 2025 that may be closed by this pull request
baszalmstra and others added 5 commits January 3, 2025 16:15
There was an issue were the packages in the build-cache were reused for unrelated source checkouts. This is because we bucket the caches based on the pinned source spec but for a lot of examples the pinned path source spec was simply .. This caused a lot of examples to reuse the cache entry of another source checkout causing strange behavior.

I fixed this issue by using the pinned source spec as the cache key if the source is immutable (e.g. for git checkouts) and otherwise (e.g. for path source dependencies) use the absolute path on disk as the cache key. I think this makes sense as it creates separate cache entries for packages in different locations on disk (like temporary directories).
@tdejager
Copy link
Contributor Author

tdejager commented Jan 3, 2025

Update backends in a seperate PR: prefix-dev/pixi-build-backends#47

@tdejager tdejager merged commit 13121ba into prefix-dev:main Jan 6, 2025
28 checks passed
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.

Split protocol into a negotiate step and an intialize step
5 participants