Commit Graph

24 Commits

Author SHA1 Message Date
Michal Kuratczyk 9373661a33
Revert "Remove Elixir json dep in a few more places #9926"
This reverts commit 50e1fed344.
2023-11-17 13:08:26 +01:00
Michael Klishin 50e1fed344
Remove Elixir json dep in a few more places #9926
(cherry picked from commit d419b0a431)
2023-11-16 10:59:42 -05:00
Rin Kuryloski db5f912db9 Make the extension of :package-generic-unix configurable in bazel 2023-06-20 10:14:31 +02:00
Michal Kuratczyk fb3655610c
Update CSV to 3.0.5;; remove unused dep 2023-05-26 18:04:42 +02:00
Rin Kuryloski eb94a58bc9 Add a workflow to compare the bazel/erlang.mk output
To catch any drift between the builds
2023-05-15 13:54:14 +02:00
Rin Kuryloski dad871e86c Update rules_pkg to 0.9.1 2023-05-12 12:45:01 +02:00
Rin Kuryloski 8de8f59d47 Use gazelle generated bazel files
Bazel build files are now maintained primarily with `bazel run
gazelle`. This will analyze and merge changes into the build files as
necessitated by certain code changes (e.g. the introduction of new
modules).

In some cases there hints to gazelle in the build files, such as `#
gazelle:erlang...` or `# keep` comments. xref checks on plugins that
depend on the cli are a good example.
2023-04-17 18:13:18 +02:00
Rin Kuryloski 12153ed823 Fetch github.com/hexpm/hex via bzlmod
This fixes a visibility issue when a bazel module depends on
rabbitmq-server
2023-04-13 09:45:28 +02:00
Rin Kuryloski 5ebd7b889a Correctly include json and csv cli deps in :source_archive 2023-03-14 23:18:00 +01:00
Rin Kuryloski 6209180f80 Use pkg_files rules to avoid extra tars
in package-generic-unix and source_archive macros
2023-03-14 23:18:00 +01:00
Rin Kuryloski b84e746ee9 Rework plt/dialyze for rabbitmqctl and plugins that depend on it
This allows us to stop ignorning undefined callback warnings

When mix compiles rabbitmqctl, it produces a 'consolidated' directory
alongside the 'ebin' dir. Some of the modules in consolidated are
intended to be used instead of those provided by elixir. We now handle
the conflicts properly in the bazel build.
2023-01-19 17:29:23 +01:00
Rin Kuryloski 9e6d66ee5e Copy rather than symlink rabbitmqctl in bazel
when creating rabbitmq home folders
2022-12-08 13:03:17 +01:00
Rin Kuryloski 67662564e7 Use .tar.xz extension for //:source_archive bazel target 2022-10-28 09:27:50 +02:00
Rin Kuryloski 535ac31542 Rework package_generic_unix & source_archive bazel macros
So that they are usable in other bazel modules depending on
rabbitmq-server (such as plugins)
2022-10-27 13:13:25 +02:00
Rin Kuryloski 27cad09e01 Fixup the source_archive macro in dist.bzl 2022-07-14 16:15:11 +02:00
Philip Kuryloski e2ca5d4190 Use keyword args in bazel macros as per buildifier linter 2022-07-11 18:16:25 +02:00
Philip Kuryloski 3f3df481de Adjust macros in dist.bzl to be used more generally
and not just at the root of this repo
2022-07-11 17:52:34 +02:00
Philip Kuryloski 4b870a5b98 Adjustments to :package-generic-unix for rules_pkg 0.5.1 2022-06-18 14:12:28 +02:00
Philip Kuryloski 34db1a3c38 Add a rule for building a source archive
that includes the external dependencies
2022-06-14 10:44:09 +02:00
Philip Kuryloski 0b676e925f Again bump rules_erlang 2022-06-08 14:04:59 +02:00
Philip Kuryloski 327f075d57 Make rabbitmq-server work with rules_erlang 3
Also rework elixir dependency handling, so we no longer rely on mix to
fetch the rabbitmq_cli deps

Also:

- Specify ra version with a commit rather than a branch
- Fixup compilation options for erlang 23
- Add missing ra reference in MODULE.bazel
- Add missing flag in oci.yaml
- Reduce bazel rbe jobs to try to save memory
- Use bazel built erlang for erlang git master tests
- Use the same cache for all the workflows but windows
- Avoid using `mix local.hex --force` in elixir rules
  - Fetching seems blocked in CI, and this should reduce hex api usage in
    all builds, which is always nice
- Remove xref and dialyze tags since rules_erlang 3 includes them in
  the defaults
2022-06-08 14:04:53 +02:00
Philip Kuryloski efcd881658 Use rules_erlang v2
bazel-erlang has been renamed rules_erlang. v2 is a substantial
refactor that brings Windows support. While this alone isn't enough to
run all rabbitmq-server suites on windows, one can at least now start
the broker (bazel run broker) and run the tests that do not start a
background broker process
2022-01-18 13:43:46 +01:00
Michael Klishin f7d32d69f8 Introduce a new CLI tool (scope), rabbitmq-tanzu
For Tanzu (commercial) plugins to attach their commands to instead of
polluting rabbitmqctl.

Pair: @pjk25
(cherry picked from commit 6e0f2436fa)
2021-11-30 14:54:09 +00:00
Philip Kuryloski 11fd866247 Add the bazel target :package-generic-unix
Which can be used to build the artifact with bazel
2021-11-18 14:38:41 +01:00