bazel build release v3.6.1 fail

161 views
Skip to first unread message

xin ma

unread,
Aug 16, 2022, 7:07:18 AM8/16/22
to Repo and Gerrit Discussion
hi everyone 
 I want to build against tag v3.6.1, but the following error occurs
  ERROR: /Users/maxin/Desktop/gerrit/plugins/replication/BUILD:5:14: Building plugins/replication/libreplication__plugin-class.jar (69 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor, AutoOneOfProcessor, AutoValueGsonAdapterFactoryProcessor) failed: (Exit 1): java failed: error executing command external/remotejdk11_macos/bin/java -XX:-CompactStrings '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' ... (remaining 17 arguments skipped)
plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java:24: error: symbol not found
import com.google.gerrit.extensions.events.GitBatchRefUpdateListener;
                                          ^
symbol:   class GitBatchRefUpdateListener
 location: package com.google.gerrit.extensions.events
plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java:57: symbol not found
        GitBatchRefUpdateListener,
...

order: git checkout v3.6.1
          bazel build release 

Nasser Grainawi

unread,
Aug 16, 2022, 10:23:14 AM8/16/22
to xin ma, Repo and Gerrit Discussion
Likely you have the wrong version of the replication submodule checked out. Make sure you also do 'git submodule update --init --recursive' or add '--recurse-submodules' to your checkout command.
 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/b04d93c1-3b31-407a-835b-f594afcbc467n%40googlegroups.com.

xin ma

unread,
Aug 16, 2022, 10:02:40 PM8/16/22
to Repo and Gerrit Discussion
thank you for your reply, git submodule update --init --recursive" task command solved the problem
Reply all
Reply to author
Forward
0 new messages