From 9a17574dd22b561ff6991113c6a6383d3b5a3bbf Mon Sep 17 00:00:00 2001 From: Mark Allen Date: Wed, 19 Dec 2018 15:29:24 -0600 Subject: [PATCH 1/2] Add hex info for plugin usage --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e6bccef..345adc0 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,12 @@ The following addition to `rebar.config` makes the plugin available for use with ]}. ``` +This plugin is also available on [hex][hex], so this ought to work: + +``` +{plugins, [ rebar_raw_resource ] }. +``` + ### Add Raw Dependencies The `raw` resource type is simply a wrapper around another type, so the basic structure of a raw dependency is: @@ -95,7 +101,7 @@ If the dependency is going to be included in your project as an OTP application, ## Caveats -###Scope of Dependency Names and Locations +### Scope of Dependency Names and Locations At present, I don't discriminate between scopes, assuming a given dependency location always maps to the same name. Including the dependency's version selector and profile would allow complete uniqueness of mappings, but subsequent operations may alter the version selector, resulting in matches not being found. @@ -129,4 +135,5 @@ Everything here is covered by this [license][license]. [rebar3]: https://www.rebar3.org [rebar3cfg]: https://www.rebar3.org/docs/configuration [rebar3src]: https://github.com/erlang/rebar3 + [hex]: https://hex.pm/packages/rebar_raw_resource From 51588528c51390ab89d173caa96bf4f7b4673bee Mon Sep 17 00:00:00 2001 From: Mark Allen Date: Wed, 19 Dec 2018 15:31:35 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 345adc0..52e44ad 100644 --- a/README.md +++ b/README.md @@ -22,17 +22,7 @@ _You'll find some information in the [rebar3 configuration][rebar3cfg] documenta ### Add The Plugin -The following addition to `rebar.config` makes the plugin available for use with your dependencies: - -```erlang -{plugins, [ - {rebar_raw_resource, - {git, "git://github.com/basho/rebar_raw_resource.git", - {branch, "master"}}} -]}. -``` - -This plugin is also available on [hex][hex], so this ought to work: +The following addition to `rebar.config` makes the plugin available for use with your dependencies. Since it is available on [hex][hex], this ought to work: ``` {plugins, [ rebar_raw_resource ] }.