bazelbuild/bazel
View on GitHub[9.1.0] Crash on `files` attr in `archive_override`
Open
#29437 opened on Apr 30, 2026
P2help wantedteam-ExternalDepstype: bug
Description
Description of the bug:
When using the files attr in archive_override to override the MODULE.bazel, bazel crashes.
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.UnsupportedOperationException: unexpected access of cycle details
at com.google.devtools.build.skyframe.CycleInfo$CycleInfoNoDetails.getTopKey(CycleInfo.java:124)
at com.google.devtools.build.lib.bazel.commands.ModCommand.execInternal(ModCommand.java:301)
at com.google.devtools.build.lib.bazel.commands.ModCommand.exec(ModCommand.java:133)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:783)
at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:266)
at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:608)
at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$0(GrpcServerImpl.java:682)
at io.grpc.Context$1.run(Context.java:566)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel_dep(name = "example")
archive_override(
module_name = "example",
files = {"MODULE.bazel": "//override.MODULE.bazel"},
)
Which operating system are you running Bazel on?
NixOS / Linux
What is the output of bazel info release?
release 9.1.0- (@non-git)
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
I use NixOS to build 9.1.0
What's the output of git remote get-url origin; git rev-parse HEAD ?
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
I can confirm that this didn't happen in Bazel 8.5.0
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response