GerritCodeReview / plugins_events-log

This plugin listens to stream events and stores them in a database. The events can be retrieved through REST API. - (mirror of http://gerrit.googlesource.com/plugins%2Fevents-log)
Apache License 2.0
0 stars 1 forks source link

build failed #1

Open v2less opened 7 months ago

v2less commented 7 months ago
bazel build events-log
Starting local Bazel server and connecting to it...
DEBUG: Rule 'com_googlesource_gerrit_bazlets' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1596025598 +0200"
DEBUG: Repository com_googlesource_gerrit_bazlets instantiated at:
  /root/gerrit/plugins_events-log/WORKSPACE:5:13: in <toplevel>
  /root/gerrit/plugins_events-log/bazlets.bzl:9:23: in load_bazlets
Repository rule git_repository defined at:
  /root/.cache/bazel/_bazel_root/ed795f40f623b7aeb0c6eb3d56e4888b/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
INFO: Repository hikaricp instantiated at:
  /root/gerrit/plugins_events-log/WORKSPACE:19:21: in <toplevel>
  /root/gerrit/plugins_events-log/external_plugin_deps.bzl:4:14: in external_plugin_deps
Repository rule maven_jar defined at:
  /root/.cache/bazel/_bazel_root/ed795f40f623b7aeb0c6eb3d56e4888b/external/com_googlesource_gerrit_bazlets/tools/maven_jar.bzl:163:28: in <toplevel>
ERROR: An error occurred during the fetch of repository 'hikaricp':
   Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/ed795f40f623b7aeb0c6eb3d56e4888b/external/com_googlesource_gerrit_bazlets/tools/maven_jar.bzl", line 148, column 22, in _maven_jar_impl
                out = ctx.execute(args)
Error in execute: Argument 0 of execute is neither a path, label, nor string.
ERROR: /root/gerrit/plugins_events-log/BUILD:10:14: //:events-log__plugin depends on @hikaricp//jar:jar in repository @hikaricp which failed to fetch. no such package '@hikaricp//jar': Argument 0 of execute is neither a path, label, nor string.
ERROR: Analysis of target '//:events-log' failed; build aborted: Analysis failed
INFO: Elapsed time: 24.029s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (20 packages loaded, 89 targets configured)
sehdshskj commented 4 months ago

Hello, I encountered the same problem as you. Based on my experience, the reason for this problem is the lack of python ,curl and zip. Install these two tools and try again.