Closed sgowroji closed 4 weeks ago
Error logs on Windows :
(04:20:37) ERROR: Skipping '//...': error loading package under directory '': error loading package 'testdata': at C:/b/bk-windows-3cjv/bazel-org-repo-root/rules_webtesting/web/web.bzl:45:6: Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//lib:types.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..
(04:20:37) ERROR: error loading package under directory '': error loading package 'testdata': at C:/b/bk-windows-3cjv/bazel-org-repo-root/rules_webtesting/web/web.bzl:45:6: Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//lib:types.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..
(04:20:37) INFO: Elapsed time: 1.061s
(04:20:37) INFO: 0 processes.
(04:20:37) ERROR: Build did NOT complete successfully
Error logs on MacOS:
(06:02:40) ERROR: Skipping '//...': error loading package under directory '': error loading package 'go/wtl/service/sauce': Unable to find package for @@[unknown repo 'io_bazel_rules_go' requested from @@]//go:def.bzl: The repository '@@[unknown repo 'io_bazel_rules_go' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_go' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..
(06:02:40) ERROR: error loading package under directory '': error loading package 'go/wtl/service/sauce': Unable to find package for @@[unknown repo 'io_bazel_rules_go' requested from @@]//go:def.bzl: The repository '@@[unknown repo 'io_bazel_rules_go' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_go' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..
(06:02:40) INFO: Elapsed time: 4.078s
(06:02:40) INFO: 0 processes.
(06:02:40) ERROR: Build did NOT complete successfully
repro note: requires workspace.
USE_BAZEL_VERSION=last_green bazel build ... --enable_bzlmod=false --enable_workspace=true
Figured out the issue: https://github.com/bazelbuild/rules_java/issues/128
We just need to update the rules_java used for workspace. bzlmod automatically picked up 7.11.1. Workspace was using something much earlier (5-something I think I saw).
Well, upgrading the java version fixes part of it, but now there are errors about finding toolchains. (this is all with bazel@head). I guess that's a separate issue, though.
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4128#0191f902-6d77-40a5-a959-8804174bbd09
Platform: MacOS
Logs:
Culprit:
Steps:
CC Greenteam @comius