Skip to content

Commit

Permalink
Merge pull request #2923 from paulo-ferraz-oliveira/fix/rebar.config.…
Browse files Browse the repository at this point in the history
…sample

Approach the sample config. file to rebar3.org's documentation
  • Loading branch information
ferd authored Nov 12, 2024
2 parents c8811d1 + 3f35470 commit 9ca36c6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rebar.config.sample
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@
%% type, location and revision).
%% Rebar3 currently supports git and hg
{deps, [
app_name, % latest version of package
rebar, % latest version of package
{rebar, "1.0.0"}, % version 1.0.0 of a package
{rebar, % app under a different pkg name
{pkg, rebar_fork}},
{rebar, % versioned app under a different pkg name
"1.0.0", {pkg, rebar_fork}},
{rebar, % git, main branch of app, explicit
{git, "git://github.com/rebar/rebar.git", {branch, "main"}}},
{rebar, % git, over HTTPS
Expand All @@ -99,6 +103,12 @@
{git, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}}},
{rebar, % mercurial is also supported
{hg, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}}},
{rebar, % git, over HTTPS, from a sub-directory
{git_subdir, "https://github.com/rebar/rebar.git", {branch, "main"}, "subdir"}},
{rebar, % git, tag, from a sub-directory
{git_subdir, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}, "sub/dir"}},
{rebar, % git, specific reference/hash, from a sub-directory
{git_subdir, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}, "dir"}},
%% Alternative formats, backwards compatible declarations
{rebar, % default branch, will warn recommending explicit branch
{git, "git://github.com/rebar/rebar.git"}},
Expand Down

0 comments on commit 9ca36c6

Please sign in to comment.