Skip to content

Commit 9ca36c6

Browse files
authored
Merge pull request #2923 from paulo-ferraz-oliveira/fix/rebar.config.sample
Approach the sample config. file to rebar3.org's documentation
2 parents c8811d1 + 3f35470 commit 9ca36c6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rebar.config.sample

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@
8787
%% type, location and revision).
8888
%% Rebar3 currently supports git and hg
8989
{deps, [
90-
app_name, % latest version of package
90+
rebar, % latest version of package
9191
{rebar, "1.0.0"}, % version 1.0.0 of a package
92+
{rebar, % app under a different pkg name
93+
{pkg, rebar_fork}},
94+
{rebar, % versioned app under a different pkg name
95+
"1.0.0", {pkg, rebar_fork}},
9296
{rebar, % git, main branch of app, explicit
9397
{git, "git://github.com/rebar/rebar.git", {branch, "main"}}},
9498
{rebar, % git, over HTTPS
@@ -99,6 +103,12 @@
99103
{git, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}}},
100104
{rebar, % mercurial is also supported
101105
{hg, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}}},
106+
{rebar, % git, over HTTPS, from a sub-directory
107+
{git_subdir, "https://github.com/rebar/rebar.git", {branch, "main"}, "subdir"}},
108+
{rebar, % git, tag, from a sub-directory
109+
{git_subdir, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}, "sub/dir"}},
110+
{rebar, % git, specific reference/hash, from a sub-directory
111+
{git_subdir, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}, "dir"}},
102112
%% Alternative formats, backwards compatible declarations
103113
{rebar, % default branch, will warn recommending explicit branch
104114
{git, "git://github.com/rebar/rebar.git"}},

0 commit comments

Comments
 (0)