-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: build ratelimit failed #3
Comments
Well, # civetweb
native.new_git_repository(
name = "civetweb_git",
remote = "https://github.com/civetweb/civetweb.git",
commit = "85424a",
build_file = workspace_name + "//third_party:civetweb.BUILD"
) to full commit id # civetweb
native.new_git_repository(
name = "civetweb_git",
remote = "https://github.com/civetweb/civetweb.git",
commit = "85424a4ad51eadc7e0b5942cadff2869a3ea1d84",
build_file = workspace_name + "//third_party:civetweb.BUILD"
)
and it's work. BUT another Error :( INFO: Found 1 target...
ERROR: /home/lap11612-local/.cache/bazel/_bazel_lap11612-local/68d74f66ddd61171560d4315e637150a/external/rocksdb_git/BUILD.bazel:3:1: Executing genrule @rocksdb_git//:build_version failed (Exit 1)
cat: external/rocksdb_git/.git/HEAD: No such file or directory
Target //ratelimit:ratelimit failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 516.546s, Critical Path: 21.36s
INFO: 953 processes: 949 linux-sandbox, 4 local.
FAILED: Build did NOT complete successfully
Still working on it ..... |
well well, figure out that the reason is bazel download rocksdb_git /third_party/rocksdb.BUILD required genrule(
name = "build_version",
srcs = glob([".git/**/*"]) + [
"util/build_version.cc.in",
],
outs = [
"util/build_version.cc",
],
# `git rev-parse HEAD` returns the SHA, but it does not work in all the environments
# when combined with bazel sandboxing
cmd = "GIT_DIR=external/rocksdb_git/.git; " +
"GIT_SHA=$$(cat $$GIT_DIR/HEAD | cut -d \" \" -f 2 | xargs -I {} cat $$GIT_DIR/{}); " +
"sed -e s/@@GIT_SHA@@/$$GIT_SHA/ -e s/@@GIT_DATE_TIME@@/$$(date +%F)/ " +
"external/rocksdb_git/util/build_version.cc.in >> $(@)",
) I have to move to Then Now it's build successfully. Thanks |
Without the full commit SHA you get an error like: Prefix civetweb-85424a4 was given, but not found in the archive Relates to smyte#3
Hi,
I build like Setup section but have an error like this.
Can anyone help me ?
The text was updated successfully, but these errors were encountered: