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
Example of internal toolchain usage #226
Comments
Managed to get past this by defining my own platforms:
And then passing
|
Ah, had to remove
I'm assuming this is due to me running it on |
Hi @com6056, Apologies for the delayed response, I had been away on summer vacation. I'm glad you were able to make some progress on this on your own. I suppose the documentation could be improved a bit, at the very least.
For now that is required, as by default we always resolve to "external" erlang by default. This was deemed the least surprising default behavior since most erlang developers already have erlang installed on their system. I've had a look at the platforms that rules_erlang defines by default in
We primarily use internal erlangs with RBE, and a known docker image. There are therefore some assumptions about what's available on the host that have been overlooked. It seems that we do expect rules_erlang/private/erlang_build.bzl Line 72 in 06c5a81
erlang_build rule to work properly with zero assumptions about the host is not at the moment a high priority for us. PRs to this effect are welcome. It may be possible to leverage https://github.com/bazelbuild/bazel/blob/master/tools/build_defs/hash/hash.bzl to remove the sha256sum dependency in particular.
|
Oh, and one other thing
should skip the sha256sum command, and allow you to check if the rest of the build would succeed |
in the `erlang_build` rule Relates to #226
in the `erlang_build` rule Relates to #226
in the `erlang_build` rule Relates to #226
Sorry for the delay! Starting to dig into this again now that I have some time, I'll give your suggestions a try and let you know how it goes 🤞 One thing is that my end goal is to be able to build Elixir apps with this and what's available in https://github.com/rabbitmq/rabbitmq-server/tree/main/bazel/elixir, do you know if it will actually be possible or does it still need a lot of work before it can be used ourside of Also, I'm a bit confused on the terminology, is Thanks! |
Yes, As for #91, it's probably usable, but I consider it suboptimal since we're just wrapping |
Describe the bug
I can't seem to get the internal toolchain working, it would be great if there was an example of how to use it.
Reproduction steps
Here's what I have so far in my WORKSPACE:
When I try to build something though, I can't seem to find the right incantation of platform/toolchain flags to get things working:
Expected behavior
I expect the internal toolchain to work, I'm assuming I'm just doing something wrong though!
Additional context
Tried on both macOS and Linux, no luck.
The text was updated successfully, but these errors were encountered: