Commit Graph

11 Commits

Author SHA1 Message Date
Loïc Hoguin 7ad8e2856b
make: Restrict Erlang.mk plugin inclusion
This has no real impact on performance[1] but should
make it clear which application can run the broker
and/or publish to Hex.pm. In particular, applications
that we can't run the broker from will now give up
early if we try to.

Note that while the broker can't normally run from the
amqp_client application's directory, it can run from
tests and some of the tests start the broker.

[1] on my machine
2024-08-29 15:19:50 +02:00
Luke Bakken fb5068a80e
Begin work migrating to native hex publishing
Use hex for credentials_obfuscation dep
2022-04-19 13:21:52 -07:00
Luke Bakken 9799fc6674
Add necessary items for hex-publish to work for amqp10_client 2022-03-29 10:25:45 -07:00
Philip Kuryloski e02132ee0f Fix rabbitmq-components.mk path when publishing to hex pm 2021-05-25 10:29:51 +02:00
Jean-Sébastien Pédron 0d0cbadf6b rabbitmq-hexpm.mk: Always download the latest hexpm-cli
As of this commit, it should still be version 0.3.0.
2019-03-21 15:51:08 +01:00
Jean-Sébastien Pédron 3eb5ae110a rabbitmq-hexpm.mk: Switch to hexpm-cli 0.3.0
This version should work with the latest `rebar3_hex` plugin (6.5.0).
2019-03-18 13:40:25 +01:00
Jean-Sébastien Pédron 2d116f96d6 rabbitmq-hexpm.mk: Switch to hexpm-cli 0.2.0
This version should work with the latest `rebar3_hex` plugin.
2018-12-06 18:32:53 +01:00
Jean-Sébastien Pédron 54ff0ee888 rabbitmq-hexpm.mk: Allow to override version pinning
... for `rabbit_common` and `amqp_client`.

This should only be used for testing purpose (e.g. dry-run in CI),
otherwise dependency tracking will break: `amqp_client` depends on a
specific version of `rabbit_common`.

However in CI, we want to be able to do a publish dry-run of
`amqp_client`. As it requires `rabbit_common` to be published, we need
to override the version pinning to point it to an already published
version of `rabbit_common` (the corresponding version of `rabbit_common`
was not published either). This is ok because nothing is published in
the end.

[#150482173, #150482202]
2017-10-20 09:02:48 +02:00
Jean-Sébastien Pédron 34e9ac31b9 rabbitmq-hexpm.mk: Copy 3rd-party dependencies to rabbitmq-componentS.hexpm.mk
When we publish our packages to Hex.pm, we use the simplified
rabbitmq-components.hexpm.mk to replace the regular
rabbitmq-components.mk.

Before commit ba59f969b7,
rabbitmq-components.mk took 3rd-party dependencies from GitHub. Now that
it takes them from Hex.pm, we don't need to override and hard-code them
again in rabbitmq-components.hexpm.mk.

Thus now, we extract them from rabbitmq-components.mk and put them at
the end of rabbitmq-components.hexpm.mk when we publish to Hex.pm.

The other benefit is that we don't have to remember to change version
pinning in both rabbitmq-components.mk and rabbitmq-components.hexpm.mk.

[#150482173]
2017-10-13 10:47:45 +02:00
Gerhard Lazu b6ce549268 Create .erlang.mk if it's missing
Subsequent commands will fail otherwise

[#150422612]
2017-08-21 23:38:52 +01:00
Jean-Sébastien Pédron a6fbaf93cc mk/rabbitmq-hexpm.mk: Extract plugin from rabbitmq-build.mk
This is necessary to load rabbitmq-hexpm.mk after erlang.mk. This should
fix the publish to Hex.pm.
2017-03-16 16:29:27 +01:00