Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading