|
87 | 87 | %% type, location and revision). |
88 | 88 | %% Rebar3 currently supports git and hg |
89 | 89 | {deps, [ |
90 | | - app_name, % latest version of package |
| 90 | + rebar, % latest version of package |
91 | 91 | {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}}, |
92 | 96 | {rebar, % git, main branch of app, explicit |
93 | 97 | {git, "git://github.com/rebar/rebar.git", {branch, "main"}}}, |
94 | 98 | {rebar, % git, over HTTPS |
|
99 | 103 | {git, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}}}, |
100 | 104 | {rebar, % mercurial is also supported |
101 | 105 | {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"}}, |
102 | 112 | %% Alternative formats, backwards compatible declarations |
103 | 113 | {rebar, % default branch, will warn recommending explicit branch |
104 | 114 | {git, "git://github.com/rebar/rebar.git"}}, |
|
0 commit comments