Open basraayman opened 1 year ago
I worked around the 404 by editing /root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/io_bazel_rules_go/go/private/repositories.bzl, changing zlib version to 1.2.13. After that I got this error when running:
$ /root/git/schedviz/node_modules/.bin/bazel run server
INFO: Writing tracer profile to '/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/command.profile.gz'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: //client/app/sidebar:sidebar: no such attribute 'strict_templates' in 'ng_module' rule
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar/settings_menu:settings_menu' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar/thread_table:thread_table' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.ts' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar_module.ts' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.ng.html' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.css' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar'
ERROR: /root/git/schedviz/client/app/dashboard/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar' contains an error and its package is in error and referenced by '//client/app/dashboard:dashboard'
ERROR: Analysis of target '//server:server' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.788s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (2 packages loaded, 2 targets configured)
FAILED: Build did NOT complete successfully (2 packages loaded, 2 targets configured)
Fetching @go_googleapis; Cloning 41d72d444fbe445f4da89e13be02078734fb7875 of https://github.com/googleapis/googleapis
error Command failed with exit code 1.
I fixed this by reverting to commit #a932419 and then modifying the zlib version and md5 in repositories.bzl which did the trick.
Running the yarn command to start the server gives me the following:
yarn bazel run server -- -- -storage_path=~/traces
yarn run v1.22.19 warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts. $ /home/bas/git/schedviz/node_modules/.bin/bazel run server -- '-storage_path=~/traces' Extracting Bazel installation... Starting local Bazel server and connecting to it... INFO: Writing tracer profile to '/home/bas/.cache/bazel/_bazel_bas/cd302194fecff1bc1697c9f7dd52a681/command.profile.gz' WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/12a2d801f69ca8fff9128a8044549d7cbac306f1.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: //client/app/sidebar:sidebar: no such attribute 'strict_templates' in 'ng_module' rule ERROR: /home/bas/git/schedviz/client/app/sidebar/settings_menu/BUILD.bazel:8:1: //client/app/sidebar/settings_menu:settings_menu: no such attribute 'strict_templates' in 'ng_module' rule ERROR: /home/bas/git/schedviz/client/app/sidebar/thread_table/BUILD.bazel:8:1: //client/app/sidebar/thread_table:thread_table: no such attribute 'strict_templates' in 'ng_module' rule ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar/settings_menu:settings_menu' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar/thread_table:thread_table' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.ts' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar_module.ts' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.ng.html' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/sidebar/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar.css' contains an error and its package is in error and referenced by '//client/app/sidebar:sidebar' ERROR: /home/bas/git/schedviz/client/app/dashboard/BUILD.bazel:8:1: Target '//client/app/sidebar:sidebar' contains an error and its package is in error and referenced by '//client/app/dashboard:dashboard' ERROR: Analysis of target '//server:server' failed; build aborted: Analysis failed INFO: Elapsed time: 138.574s INFO: 0 processes. FAILED: Build did NOT complete successfully (79 packages loaded, 7088 targets configured) FAILED: Build did NOT complete successfully (79 packages loaded, 7088 targets configured) Fetching @org_golang_google_grpc; Cloning 2fdaae294f38ed9a121193c51ec99fecd3b13eb7 of https://github.com/grpc/grpc-go Fetching @com_github_workiva_go-datastructures; fetching Fetching @com_google_protobuf; Cloning 582743bf40c5d3639a70f98f183914a2c0cd0680 of https://github.com/protocolbuffers/protobuf Fetching @org_golang_x_tools; Cloning 589c23e65e65055d47b9ad4a99723bc389136265 of https://go.googlesource.com/tools Fetching @build_bazel_rules_nodejs_rollup_deps; Running yarn install on @build_bazel_rules_nodejs//internal/rollup:package.json error Command failed with exit code 1.
The 404 is actually correct, since the reference to https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/12a2d801f69ca8fff9128a8044549d7cbac306f1.zip is obsolete and just gives a return of:`
NoSuchKey
`