Skip to content

chore: remove legacy WORKSPACE example#7

Merged
benfdking merged 2 commits into
mainfrom
chore/remove-workspace-example
May 23, 2026
Merged

chore: remove legacy WORKSPACE example#7
benfdking merged 2 commits into
mainfrom
chore/remove-workspace-example

Conversation

@benfdking
Copy link
Copy Markdown

Summary

  • Delete examples/workspace/ — the bzlmod example in examples/rules_js/ already covers the supported integration path.
  • Drop the corresponding Build and Test WORKSPACE example step from .github/workflows/tests.yml.

Why

CI on main (and every recent PR) was failing because examples/workspace was bumped to Bazel 9.1.0, where bzlmod stays enabled despite the local .bazelrc --noenable_bzlmod --enable_workspace — so @npm (defined via npm_translate_lock in WORKSPACE.bazel) is no longer visible and bazelisk test //... fails with "No repository visible as '@npm'".

Rather than pin an older Bazel just to keep a legacy-WORKSPACE demo alive, removing the example matches actual support intent and unblocks CI.

Test plan

🤖 Generated with Claude Code

benfdking and others added 2 commits May 23, 2026 17:59
The examples/rules_js bzlmod example already covers the supported
integration path. Maintaining a parallel WORKSPACE example was
breaking CI on Bazel 9 (no @npm visible because bzlmod stays on
despite the local .bazelrc) and offered no coverage we don't get
from the bzlmod example.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Snapshots committed on 17 May drifted ~1% of pixels on the CI runner's
browser binaries. Add maxDiffPixelRatio: 0.02 so minor cross-version
rendering changes don't fail the example test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@benfdking benfdking merged commit 84e1f68 into main May 23, 2026
1 check passed
@benfdking benfdking mentioned this pull request May 23, 2026
2 tasks
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.

1 participant