Skip to content

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Aug 28, 2025

This PR splits up rattler-build to add additional crates:

  • rattler_build_source_cache contains a module to fetch and cache sources (URL and Git).
  • rattler_git is a copy from pixi_git (which comes from uv_git) and takes care of checking out git repositories. This should ideally – if things work out – make it's way to rattler.

wolfv and others added 10 commits October 6, 2025 21:22
Resolved conflicts:
- Combined workspace members (rattler_git, rattler_build_source_cache, rattler_build_recipe_generator)
- Updated rattler dependency versions to match main
- Kept source cache refactoring with cache_adapter instead of duplicate fetch_source function
- Regenerated Cargo.lock

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@wolfv wolfv changed the title wip: source cache refactor feat: refactor source cache into a separate crate Oct 10, 2025
@wolfv wolfv changed the title feat: refactor source cache into a separate crate refactor: source cache into a separate crate Oct 10, 2025
Copy link
Contributor

@nichmor nichmor left a comment

Choose a reason for hiding this comment

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

Maybe we can add in rattler_build_source_cache
another module, named cache where we can put cache.rs and builder.rs?

authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Source cache management for rattler-build"
Copy link
Contributor

Choose a reason for hiding this comment

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

only for GIT and url right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah but we don't cache "path" sources (as they are on disk already) :)


## Usage

```rust
Copy link
Contributor

Choose a reason for hiding this comment

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

should we make it as a doctest for example in lib.rs?

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.

2 participants