-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Failed to using select() in WORKSPACE #11655
Comments
The recommended way to do this is defining all platform-specific deps in your WORKSPACE file
Then in your BUILD file, you can use
When you're running the build, non-necessary dependencies for your platform won't be downloaded. |
Is this statement also accurate for In gerrit, when running |
@davido That sounds like a bug. Could you open a new issue with simple repro steps (I guess "first |
Description of the problem / feature request:
I wanna use select to download current platform's binary.
But failed
I have tried
"@platforms//os:linux"
and get failed again.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
http_archive
'surl
andurls
rejects theselect()
, though from the print I can see it get the correct url.What operating system are you running Bazel on?
What's the output of
bazel info release
?If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Why ask this?
master has been renamed to main
Have you found anything relevant by searching the web?
Nothing useful so I have to ask here.
The only related is that cannot use select within bind, but I think it is not a same situation
Any other information, logs, or outputs that you want to share?
None
The text was updated successfully, but these errors were encountered: