-
Notifications
You must be signed in to change notification settings - Fork 389
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
unable to depend on "@org_golang_google_grpc//:go_default_library" #293
Comments
Here's the
You're seeing this issue because the default target OS is not Unfortunately, right now it's not possible to set the default target platform by setting You may be able to work around this by providing Bazel developers are working on explicit configuration transitions. I'd encourage you to follow the Bazel Configurability roadmap. We'd need most of the work in Platforms and User-defined configuration to be done before we can support this. It looks like that probably won't be ready until the end of 2018. |
I know this issue has been closed a while ago, but today I'm wondering if it should be possible to build a program for macOS using this google.golang.org/grpc module. In the internal/channelz package, file types_linux.go has a build tag that says "anything but
I bring this up because I'm able to build my program on macOS for Linux just fine, but I'd like to be able to execute unit tests on macOS, and that requires compiling a test program for macOS. @jayconrod, is this problem due to this gRPC module, or maybe Gazelle, or am I doing it all wrong? Please advise. |
It looks like bazel-contrib/rules_go#2009 was an earlier fix for this, but that file seems to have been deleted since (in bazel-contrib/rules_go#2126). |
@seh Source files are filtered during execution, so it's fine for Gazelle to generate
Feel free to open a new issue with enough information to reproduce the problem you're seeing. |
@jayconrod, per your request, please see #684. |
In my understanding google.golang.org/grpc and golang.org/x/sys are provided by default when calling go_rules_dependencies()
ERROR:
WORKSPACE:
BUILD:
The text was updated successfully, but these errors were encountered: