Skip to content

Clarify the uv layer's use of arch in comments#583

Merged
edmorley merged 1 commit into
mainfrom
edmorley/clarify-uv-arch-comments
Jun 16, 2026
Merged

Clarify the uv layer's use of arch in comments#583
edmorley merged 1 commit into
mainfrom
edmorley/clarify-uv-arch-comments

Conversation

@edmorley

Copy link
Copy Markdown
Member

The uv download URL uses the buildpack's compile-time arch (Rust's
std::env::consts::ARCH, e.g. x86_64) since that's how Astral names their
archives, whereas the cache metadata uses the CNB target arch (e.g. amd64).
Add comments explaining this, and also why the layer isn't invalidated on
distro or Python version changes.

Making this change to reduce both human and LLM confusion when
reviewing the codebase.

GUS-W-23022354.

The uv download URL uses the buildpack's compile-time arch (Rust's
`std::env::consts::ARCH`, e.g. `x86_64`) since that's how Astral names their
archives, whereas the cache metadata uses the CNB target arch (e.g. `amd64`).
Add comments explaining this, and also why the layer isn't invalidated on
distro or Python version changes.

Making this change to reduce both human and LLM confusion when
reviewing the codebase.

GUS-W-23022354.
@edmorley edmorley added the skip changelog Skip the check-changelog check label Jun 16, 2026
@edmorley edmorley self-assigned this Jun 16, 2026
@edmorley edmorley marked this pull request as ready for review June 16, 2026 13:52
@edmorley edmorley requested a review from a team as a code owner June 16, 2026 13:52
@edmorley edmorley enabled auto-merge (squash) June 16, 2026 13:52
@edmorley edmorley merged commit ba30184 into main Jun 16, 2026
10 checks passed
@edmorley edmorley deleted the edmorley/clarify-uv-arch-comments branch June 16, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Skip the check-changelog check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants