-
Notifications
You must be signed in to change notification settings - Fork 204
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
Request: Erlang example #437
Comments
Hi, I'm looking into adding better Erlang support out-of-the box to buck2. In the meantime, you can look at https://github.com/TheGeorge/buck2_erlang_demo which is somewhat complete minimal example for Erlang. |
Thanks @TheGeorge , I will check those out |
I got it working with your example. Many thanks. Turns out I was close, but when I tried to use erlang_application to create the jsone target, default parameters seemed to cause a circular dependency. |
Now that I have that working, it seems there is no rule for eunit tests, only common test? Or am I mistaken? |
Yeah, we only added support for Common Test. Though it is possible to wrap eunit tests in CT suites as a workaround by just calling Please check https://buck2.build/docs/rule_authors/test_execution/ In the open-source build buck2 ships with a relatively simple test runner. |
https://buck2.build/docs/api/rules/#erlang_app describes use of the
erlang_application
macro, however this seems to implicity rely on the existence oftoolchains//:erlang-default
. The@prelude//toolchains
directory does not seem to contain any kind of erlang toolchain however. It would be nice to have a complete basic erlang application example for Buck2.The text was updated successfully, but these errors were encountered: