core-agent-ide/.github
Josh McKinney de93cef5b7
bazel: enforce MODULE.bazel.lock sync with Cargo.lock (#11790)
## Why this change

When Cargo dependencies change, it is easy to end up with an unexpected
local diff in
`MODULE.bazel.lock` after running Bazel. That creates noisy working
copies and pushes lockfile fixes
later in the cycle. This change addresses that pain point directly.

## What this change enforces

The expected invariant is: after dependency updates, `MODULE.bazel.lock`
is already in sync with
Cargo resolution. In practice, running `bazel mod deps` should not
mutate the lockfile in a clean
state. If it does, the dependency update is incomplete.

## How this is enforced

This change adds a single lockfile check script that snapshots
`MODULE.bazel.lock`, runs
`bazel mod deps`, and fails if the file changes. The same check is wired
into local workflow
commands (`just bazel-lock-update` and `just bazel-lock-check`) and into
Bazel CI (Linux x86_64 job)
so drift is caught early and consistently. The developer documentation
is updated in
`codex-rs/docs/bazel.md` and `AGENTS.md` to make the expected flow
explicit.

`MODULE.bazel.lock` is also refreshed in this PR to match the current
Cargo dependency resolution.

## Expected developer workflow

After changing `Cargo.toml` or `Cargo.lock`, run `just
bazel-lock-update`, then run
`just bazel-lock-check`, and include any resulting `MODULE.bazel.lock`
update in the same change.

## Testing

Ran `just bazel-lock-check` locally.
2026-02-14 02:11:19 +00:00
..
actions [release] Add a dmg target for MacOS (#8207) 2025-12-18 11:19:10 -08:00
codex Fix minor typos in comments and documentation (#10287) 2026-01-30 22:11:02 -08:00
ISSUE_TEMPLATE Updated app bug report template (#11695) 2026-02-13 10:03:04 -08:00
prompts Improve GitHub issue deduplication reliability by introducing a stage… (#11769) 2026-02-13 12:01:07 -08:00
scripts Fix linux-musl release link failures caused by glibc-only libcap artifacts (#11556) 2026-02-12 08:08:32 +00:00
workflows bazel: enforce MODULE.bazel.lock sync with Cargo.lock (#11790) 2026-02-14 02:11:19 +00:00
codex-cli-splash.png Replaced user documentation with links to developers docs site (#8662) 2026-01-02 13:01:53 -07:00
dependabot.yaml Enable Dependabot updates for Rust toolchain (#2460) 2025-08-19 18:07:21 -07:00
dotslash-config.json include new windows binaries in npm package. (#8140) 2025-12-16 16:14:33 -08:00
pull_request_template.md Updated contributing guidelines and PR template to request link to bug report in PR notes (#6332) 2025-11-06 12:02:39 -08:00