Comments (2)
Well,
I just change /smyte-db/third_party/workspace.bzl
# 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 .....
from smyte-db.
well well,
figure out that the reason is bazel download rocksdb_git v5.7.3.tar.gz
from git and extract it, so it does not has the .git folder.
/third_party/rocksdb.BUILD required .git
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 .cache/bazel/_bazel_lap11612-local/68d74f66ddd61171560d4315e637150a/external/rocksdb_git
Then git init
and check out v5.7.3
.
Now it's build successfully.
Thanks the sun
from smyte-db.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smyte-db.