From eae867abe34d74e41d9c43e9485ec8809dbfd23a Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Sun, 10 Nov 2024 12:15:34 +0000 Subject: [PATCH 1/2] Approach the sample config. file to rebar3.org's documentation --- rebar.config.sample | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rebar.config.sample b/rebar.config.sample index 58e0cb1ee..eb78bc104 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -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 @@ -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"}}, From 3f35470d5962b2fa82905d4112033885f6ade537 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Sun, 10 Nov 2024 12:29:38 +0000 Subject: [PATCH 2/2] Indent it --- rebar.config.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config.sample b/rebar.config.sample index eb78bc104..190324f65 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -103,7 +103,7 @@ {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 + {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"}},