Skip to content

Conversation

@yatharth
Copy link
Contributor

@yatharth yatharth commented Dec 28, 2025

What this PR does

Removes three lines from uv's cache keys in the root pyproject.toml.

These lines were no-ops today, and removing these lines should have no any impact whatsoever.

Additional context

The 3 removed lines were added in June in 00a9812 to ensure C++ changes trigger mettagrid rebuilds.

A refactor in September in dababc5 broke the references of those files. There are no files matching metta/**/*{.cpp,.hpp} or packages/mettagrid/BUILD in the repo. In other words, these lines are no-ops right now.

Further, the lines are not necessary to keep. The root package has no compiled extensions. It's pure Python and doesn't need to watch C++ files. The root depends on mettagrid as a dependency, which watches its own files. packages/mettagrid/pyproject.toml has the correct cache-keys for its C++/Nim sources. When those sources change, mettagrid rebuilds due to its own cache-keys, which automatically the root package to get the updated mettagrid.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@yatharth yatharth marked this pull request as ready for review December 28, 2025 07:59
@yatharth yatharth self-assigned this Dec 28, 2025
@yatharth yatharth force-pushed the yatharth/uv-cache-key-root-pyproject-toml branch from e0ab0ca to a806253 Compare December 28, 2025 08:01
@nishu-builder nishu-builder added this pull request to the merge queue Dec 29, 2025
Merged via the queue into main with commit 67f2eb7 Dec 29, 2025
18 checks passed
@nishu-builder nishu-builder deleted the yatharth/uv-cache-key-root-pyproject-toml branch December 29, 2025 13:15
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.

3 participants