Skip to content

[9.1.0] Include rctx.os.{name,arch} in the pre declared inputs hash (https://github.com/bazelbuild/bazel/pull/29148)#29195

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp29148-9.1.0-082000
Apr 3, 2026

Conversation

@bazel-io
Copy link
Copy Markdown
Member

@bazel-io bazel-io commented Apr 2, 2026

Description

Motivation

Fixes bazel-contrib/rules_go#4581

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: The local and remote repo contents cache now include the host OS and CPU architecture in the cache key.

Closes #29148.

PiperOrigin-RevId: 893352625
Change-Id: I02c0ded7ffe2b5aa9bc2ef489dc5240b5716ebdf

Commit 2ec24b4

…uild#29148)

### Description

### Motivation
Fixes bazel-contrib/rules_go#4581

### Build API Changes

No

### Checklist

- [ ] I have added tests for the new use cases (if any).
- [ ] I have updated the documentation (if applicable).

### Release Notes

RELNOTES: The local and remote repo contents cache now include the host OS and CPU architecture in the cache key.

Closes bazelbuild#29148.

PiperOrigin-RevId: 893352625
Change-Id: I02c0ded7ffe2b5aa9bc2ef489dc5240b5716ebdf
@bazel-io bazel-io requested a review from a team as a code owner April 2, 2026 08:20
@bazel-io bazel-io added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Apr 2, 2026
@bazel-io bazel-io requested a review from meteorcloudy April 2, 2026 08:20
@iancha1992 iancha1992 requested a review from Wyverald April 2, 2026 19:02
@iancha1992 iancha1992 enabled auto-merge April 3, 2026 21:02
@iancha1992 iancha1992 added this pull request to the merge queue Apr 3, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit a158f0e Apr 3, 2026
46 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 3, 2026
gh-worker-dd-mergequeue-cf854d Bot pushed a commit to DataDog/datadog-agent that referenced this pull request Apr 22, 2026
### What does this PR do?
Update `.bazelversion` from 9.0.1 to 9.1.0 and regenerate `MODULE.bazel.lock` accordingly.

### Motivation
The most impactful fix for our dev setup is bazelbuild/bazel#29195: the local and remote repo contents cache now includes the host OS and CPU architecture in the cache key.
This bug was initially reported by us (@JSGette): bazel-contrib/rules_go#4581.

Previously, sharing `--repository_cache` across platforms (e.g., macOS host + Linux container, Linux host + Windows VM) could cause a cached OS-specific repository to be served to another OS, producing cryptic errors at build time.

### Describe how you validated your changes
- locally: built `//pkg/...` on both Linux and Windows (virtiofs mount) with no regressions,
- CI.

Co-authored-by: regis.desgroppes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants