Skip to content

Commit 5211558

Browse files
committed
fix: run e2es under bzlmod
1 parent 7c96913 commit 5211558

16 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ jobs:
315315
# Store the --config=bzlmod flag that we add to the test command below
316316
# only when we're running bzlmod in our test matrix.
317317
id: set_bzlmod_config
318-
if: matrix.bzlmodEnabled && matrix.folder == '.'
318+
if: matrix.bzlmodEnabled
319319
run: echo "bzlmod_config=--config=bzlmod" >> $GITHUB_OUTPUT
320320

321321
- name: bazel test //...
322322
if: matrix.os != 'windows-latest'
323323
working-directory: ${{ matrix.folder }}
324324
run: |
325-
bazel --bazelrc=${{ github.workspace }}/.github/workflows/ci.bazelrc --bazelrc=.bazelrc test --config=${{ matrix.config }} ${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} ${{ steps.set_bzlmod_config.outputs.bzlmod_config }} //...
325+
bazel --bazelrc=${{ github.workspace }}/.github/workflows/ci.bazelrc --bazelrc=.bazelrc test --config=${{ matrix.config }} ${{ steps.set_bzlmod_config.outputs.bzlmod_config }} //...
326326
ls $(bazel info output_base)/external | grep -v __links | grep -vz unused
327327
env:
328328
# Bazelisk will download bazel to here

e2e/npm_translate_lock_multi/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
78
bazel_dep(name = "bazel_skylib", version = "1.4.1")
89
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
910
local_path_override(

e2e/npm_translate_lock_subdir_patch/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
12
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
23
local_path_override(
34
module_name = "aspect_rules_js",

e2e/npm_translate_package_lock/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
78
bazel_dep(name = "bazel_skylib", version = "1.4.1")
89
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
910
local_path_override(

e2e/npm_translate_yarn_lock/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
78
bazel_dep(name = "bazel_skylib", version = "1.4.1")
89
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
910
local_path_override(

e2e/package_json_module/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
78
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
89
local_path_override(
910
module_name = "aspect_rules_js",

e2e/patch_from_repo/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
bazel_dep(name = "bazel_skylib", version = "1.4.1")
22
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
33
bazel_dep(name = "local_repo", version = "0.0.0")
4+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
45

56
local_path_override(
67
module_name = "aspect_rules_js",

e2e/pnpm_workspace_deps/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
78
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
89
local_path_override(
910
module_name = "aspect_rules_js",

e2e/pnpm_workspace_rerooted/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module(
55
)
66

77
bazel_dep(name = "rules_nodejs", version = "5.8.2")
8+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
89
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
910
local_path_override(
1011
module_name = "aspect_rules_js",

e2e/update_pnpm_lock/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module(
55
)
66

77
bazel_dep(name = "bazel_skylib", version = "1.4.1")
8+
bazel_dep(name = "aspect_bazel_lib", version = "1.31.2")
89
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
910
local_path_override(
1011
module_name = "aspect_rules_js",

0 commit comments

Comments
 (0)