bazelbuild / continuous-integration

Bazel's Continuous Integration Setup
https://buildkite.com
Apache License 2.0
253 stars 134 forks source link

[Bazel CI] "Can't resolve @@io_bazel_rules_go repository in `bazel info` command" #1986

Closed sgowroji closed 2 weeks ago

sgowroji commented 2 weeks ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3973#01909085-2483-4a6c-ab0c-0a9810f63a11

Platform: Windows

Logs:

bazel --output_user_root=C:/b --nosystem_rc --nohome_rc version
WARNING: Option 'experimental_enable_bzlmod' is deprecated: Use --enable_bzlmod instead
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Thu Jan 01 00:00:00 1970 (0)
Build timestamp: Thu Jan 01 00:00:00 1970 (0)
Build timestamp as int: 0
bazel --output_user_root=C:/b --nosystem_rc --nohome_rc info
WARNING: Option 'experimental_enable_bzlmod' is deprecated: Use --enable_bzlmod instead
ERROR: com.google.devtools.build.lib.packages.BuildFileNotFoundException: no such package '@@io_bazel_rules_go//go/toolchain': The repository '@@io_bazel_rules_go' could not be resolved: Repository '@@io_bazel_rules_go' is not defined
Traceback (most recent call last):
  File "c:\b\bk-windows-nznf\bazel\bazel-at-head-plus-downstream\bazelci.py", line 4520, in <module>
    sys.exit(main())
  File "c:\b\bk-windows-nznf\bazel\bazel-at-head-plus-downstream\bazelci.py", line 4488, in main
    execute_commands(
  File "c:\b\bk-windows-nznf\bazel\bazel-at-head-plus-downstream\bazelci.py", line 1354, in execute_commands
    bazel_version = print_bazel_version_info(bazel_binary, platform)
  File "c:\b\bk-windows-nznf\bazel\bazel-at-head-plus-downstream\bazelci.py", line 1651, in print_bazel_version_info
    execute_command(
  File "c:\b\bk-windows-nznf\bazel\bazel-at-head-plus-downstream\bazelci.py", line 2757, in execute_command
    return subprocess.run(
  File "C:\python3\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bazel', '--output_user_root=C:/b', '--nosystem_rc', '--nohome_rc', 'info']' returned non-zero exit status 2.
🚨 Error: The command exited with status 1

CC Greenteam @comius

meteorcloudy commented 2 weeks ago

Can you report this to rules_go instead?

sgowroji commented 2 weeks ago

Done bazelbuild/rules_go#3987

fmeum commented 2 weeks ago

Note that already the version command fails - I don't think this can be caused by a rules_go change.

@jin Could this be related to your recent work on the command system?