bazel icon indicating copy to clipboard operation
bazel copied to clipboard

bazel crash after first run with empty lock file

Open vballestra-latch opened this issue 1 year ago • 1 comments

Description of the bug:

First run without the lock file works but running a second time, after the lock file is created, leads to this error:

java.lang.RuntimeException: Unrecoverable error while evaluating node 'com.google.devtools.build.lib.bazel.bzlmod.BazelLockFileValue$$Lambda$243/0x00000008002c7c40@6feba8c' (requested by nodes 'com.google.devtools.build.lib.bazel.bzlmod.BazelDepGraphValue$$Lambda$372/0x00000008004fa840@11e5a77b')
	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:550)
	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:414)
	at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.IllegalArgumentException: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid repository name '[unknown repo 'pm_security_repo' requested from @@rules_jvm_external~]': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
	at com.google.devtools.build.lib.cmdline.Label.parseCanonicalUnchecked(Label.java:155)

Which category does this issue belong to?

Core

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Create a simple project with bzlmod, run it twice.

Which operating system are you running Bazel on?

macos

What is the output of bazel info release?

release 7.1.2-homebrew

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

vballestra-latch avatar May 25 '24 07:05 vballestra-latch

Could you test this again with 7.2.0rc2?

fmeum avatar May 30 '24 16:05 fmeum

Closing due to lack of details (and likelihood of having been fixed already).

Wyverald avatar Jun 11 '24 18:06 Wyverald