bazel-contrib / rules_perl

Perl rules for Bazel
Apache License 2.0
26 stars 37 forks source link

[Bazel CI] Error migrate to Bzlmod #67

Open sgowroji opened 2 months ago

sgowroji commented 2 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4093#0191abc3-d65d-4cc0-8a3f-9c58dd1ccc5c

Platform: MacOS

Logs:

(06:08:08) ERROR: no such package '@@[unknown repo 'genhtml' requested from @@]//': The repository '@@[unknown repo 'genhtml' requested from @@]' could not be resolved: No repository visible as '@genhtml' 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:08:08) ERROR: /Users/buildkite/builds/bk-macos-pln3-xtfq/bazel-org-repo-root/rules_perl/examples/genhtml/BUILD:17:10: no such package '@@[unknown repo 'genhtml' requested from @@]//': The repository '@@[unknown repo 'genhtml' requested from @@]' could not be resolved: No repository visible as '@genhtml' 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. and referenced by '//examples/genhtml:genhtml_test'

Culprit: https://github.com/bazelbuild/bazel/commit/5881c38c54416add9faec35b7731954f4baf12d8

Note : This issue is due to https://github.com/bazelbuild/bazel/issues/23023. After --enable_workspace is flipped to false, users have to explicitly specify it where it's needed, or fully migrate to Bzlmod.

CC Greenteam @fweikert