Skip to content

Set canonical_id on sysroot download#799

Merged
dzbarsky merged 2 commits into
bazel-contrib:masterfrom
eloisekp:eloisekp/sysroot-use-canonical-id
Jul 11, 2026
Merged

Set canonical_id on sysroot download#799
dzbarsky merged 2 commits into
bazel-contrib:masterfrom
eloisekp:eloisekp/sysroot-use-canonical-id

Conversation

@eloisekp

@eloisekp eloisekp commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The sysroot rule doesn't pass get_default_canonical_id() to rctx.download(). Without it, the repo cache is keyed on the checksum alone, so changing a sysroot URL can serve stale cached bytes instead of refetching. This mirrors http_archive & http_file rules so a URL change forces a real download.

See bazelbuild/bazel#22652 (comment)

@eloisekp eloisekp force-pushed the eloisekp/sysroot-use-canonical-id branch from 3b41ee8 to 7642aeb Compare July 8, 2026 00:37
Comment thread toolchain/sysroot.bzl
Comment thread toolchain/sysroot.bzl Outdated
@dzbarsky dzbarsky enabled auto-merge (squash) July 10, 2026 01:51
@rrbutani rrbutani force-pushed the eloisekp/sysroot-use-canonical-id branch from 0075790 to 5993672 Compare July 10, 2026 19:43
@rrbutani rrbutani force-pushed the eloisekp/sysroot-use-canonical-id branch from 5993672 to 49eb764 Compare July 11, 2026 05:12
@dzbarsky dzbarsky merged commit 37aa6b0 into bazel-contrib:master Jul 11, 2026
76 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.

4 participants