Comments (4)
I'll think about it a bit more, but off the top of my head, would this work?
- Change the hardcoded entries in go/class.bzl compile_deps to an "//external:glog" form.
- Support suppression of loading of unwanted deps, such as:
protobuf_repositories(
exclude = ["com_github_golang_glog"]
)
bind(
name = "glog",
actual = "//vendor/github.com/golang/glog"
)
Can you also try changing your dependency from the library to the source? (note the ".pb" implicit dependecy)? Curious if that is a workaround
go_library(
name = "go_default_library",
visibility = ["//visibility:public"],
srcs = [
"store.go",
"//tools/artifact/proto:go_default_library.pb",
],
deps = [
"//vendor/github.com/golang/glog:go_default_library",
"//vendor/google.golang.org/cloud/datastore:go_default_library",
],
)
from rules_protobuf.
Using bind
was my thought as well and works for me. I will try the report back regarding the implicit .pb
dependency tonight. Thanks Paul.
from rules_protobuf.
Did the bind solution work without forking?
from rules_protobuf.
The workaround resulted in
ERROR: /???/experiments.git/tools/artifact/db/BUILD:7:1: error executing shell command: 'rm -rf bazel-out/local-fastbuild/bin/tools/artifact/db/go_default_library.a.dir && mkdir -p bazel-out/local-fastbuild/bin/tools/artifact/db/go_default_library.a.dir && mkdir -p bazel-out/local-fast...' failed: linux-sandbox failed: error executing command /???/.cache/bazel/_bazel_bshi/08ef9c7ff335ac2219f037954496dcb0/execroot/experiments.git/_bin/linux-sandbox ... (remaining 5 argument(s) skipped).
???/experiments.git/tools/artifact/db/store.go:11: can't find import: "???/experiments.git/tools/artifact/proto"
Have not had a chance to investigate further. I haven't attempted the bind approach myself (no ETA unfortunately).
from rules_protobuf.
Related Issues (20)
- Can't build GRPC when using cpp_proto_repositories HOT 5
- py_proto_library fails when taking input from a genrule HOT 1
- Not work with rules_go v0.13.0 HOT 3
- Dart support? HOT 4
- Go rules HOT 1
- Can't resolve @go_googleapis//google/api HOT 1
- Custom protoc generators HOT 1
- using imports in py_proto_compile fails: _pb2.py and pb2_grpc.py not created HOT 1
- gogo_proto_library with the "well known types" (google/protobuf) HOT 12
- Non repeatable build for grpc_cli HOT 1
- Update rules_protobuf to rules_go 0.16.0 HOT 7
- Addition of protoc-gen-grpc-web HOT 2
- 32-bit C++ compilation HOT 3
- including well known protos in ruby_proto_compile HOT 4
- support latest grpc version HOT 1
- Bazel deprecated native http_archive rule HOT 2
- Unable to load package for 'org_pubref_rules_protobuf/java/rules.bzl' HOT 1
- name 'FileType' is not defined HOT 2
- BUG: Error in label: label() got unexpected keyword argument 'single_file' HOT 2
- file '//protobuf:rules.bzl' does not contain symbol 'proto_compile'
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 rules_protobuf.