Skip to content

Commit fd2f9b5

Browse files
committed
switch default branch to main
1 parent 174fd90 commit fd2f9b5

File tree

8 files changed

+18
-16
lines changed

8 files changed

+18
-16
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Common Test
33
on:
44
pull_request:
55
branches:
6-
- 'master'
6+
- 'main'
77
push:
88
branches:
9-
- 'master'
9+
- 'main'
1010

1111
jobs:
1212
linux:

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Nightly
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- 'main'
77

88
jobs:
99
build:
10-
name: Publish escript for every merge to master
10+
name: Publish escript for every merge to main
1111
runs-on: ubuntu-18.04
1212

1313
steps:

.github/workflows/shelltests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Shell tests
33
on:
44
pull_request:
55
branches:
6-
- 'master'
6+
- 'main'
77
push:
88
branches:
9-
- 'master'
9+
- 'main'
1010

1111
jobs:
1212
shelltests:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ before a final rebase to merge things. Do send edits as individual commits
307307
to allow for gradual and partial reviews to be done by reviewers. Once the +1s
308308
are given, rebasing is appreciated but not mandatory.
309309

310-
Please work in feature branches, and do not commit to `master` in your fork.
310+
Please work in feature branches, and do not commit to `main` in your fork.
311311

312312
Provide a clean branch without merge commits.
313313

rebar.config.sample

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,25 @@
8686
{deps, [
8787
app_name, % latest version of package
8888
{rebar, "1.0.0"}, % version 1.0.0 of a package
89-
{rebar, % git, master branch of app, explicit
90-
{git, "git://github.com/rebar/rebar.git", {branch, "master"}}},
89+
{rebar, % git, main branch of app, explicit
90+
{git, "git://github.com/rebar/rebar.git", {branch, "main"}}},
9191
{rebar, % git, over HTTPS
92-
{git, "https://github.com/rebar/rebar.git", {branch, "master"}}},
92+
{git, "https://github.com/rebar/rebar.git", {branch, "main"}}},
9393
{rebar, % git, tag
9494
{git, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}}},
9595
{rebar, % git, specific reference/hash
9696
{git, "https://github.com/rebar/rebar.git", {ref, "7f73b8d6"}}},
9797
{rebar, % mercurial is also supported
9898
{hg, "https://github.com/rebar/rebar.git", {tag, "1.0.0"}}},
9999
%% Alternative formats, backwards compatible declarations
100-
{rebar, % implicit master, will warn recommending explicit branch
100+
{rebar, % implicit main, will warn recommending explicit branch
101101
{git, "git://github.com/rebar/rebar.git"}},
102102
{rebar, "1.0.*", % regex version check, ignored
103103
{git, "git://github.com/rebar/rebar.git"}},
104104
{rebar, "1.0.*", % literal branch/ref/tag, will warn for explicit reference
105105
{git, "git://github.com/rebar/rebar.git", "Rev"}},
106106
{rebar, ".*", % 'raw' dependency, argument ignored
107-
{git, "git://github.com/rebar/rebar.git", {branch, "master"}},
107+
{git, "git://github.com/rebar/rebar.git", {branch, "main"}},
108108
[raw]}
109109
]}.
110110

src/rebar_git_resource.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ needs_update_(Dir, {git, Url, {branch, Branch}}) ->
8080
[{cd, Dir}]),
8181
?DEBUG("Checking git branch ~ts for updates", [Branch]),
8282
not ((Current =:= []) andalso compare_url(Dir, Url));
83+
needs_update_(Dir, {git, Url, "main"}) ->
84+
needs_update_(Dir, {git, Url, {branch, "main"}});
8385
needs_update_(Dir, {git, Url, "master"}) ->
8486
needs_update_(Dir, {git, Url, {branch, "master"}});
8587
needs_update_(Dir, {git, _, Ref}) ->

test/rebar_deps_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ top_override(Config) ->
288288
rebar_test_utils:create_config(
289289
SubAppsDir2,
290290
[{deps, [{list_to_atom(Name1),
291-
{git, "https://example.org", {branch, "master"}}}]}]
291+
{git, "https://example.org", {branch, "main"}}}]}]
292292
),
293293
rebar_test_utils:run_and_check(
294294
Config, [], ["compile"],

test/rebar_test_utils.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ create_random_vsn() ->
166166

167167
expand_deps(_, []) -> [];
168168
expand_deps(git_subdir, [{Name, Deps} | Rest]) ->
169-
Dep = {Name, {git_subdir, "https://example.org/user/"++Name++".git", {branch, "master"}, filename:join("appsubdir", Name)}},
169+
Dep = {Name, {git_subdir, "https://example.org/user/"++Name++".git", {branch, "main"}, filename:join("appsubdir", Name)}},
170170
[{Dep, expand_deps(git_subdir, Deps)} | expand_deps(git_subdir, Rest)];
171171
expand_deps(git_subdir, [{Name, Vsn, Deps} | Rest]) ->
172172
Dep = {Name, Vsn, {git_subdir, "https://example.org/user/"++Name++".git", {tag, Vsn}, filename:join("appsubdir", Name)}},
173173
[{Dep, expand_deps(git_subdir, Deps)} | expand_deps(git_subdir, Rest)];
174174
expand_deps(git, [{Name, Deps} | Rest]) ->
175-
Dep = {Name, ".*", {git, "https://example.org/user/"++Name++".git", "master"}},
175+
Dep = {Name, ".*", {git, "https://example.org/user/"++Name++".git", "main"}},
176176
[{Dep, expand_deps(git, Deps)} | expand_deps(git, Rest)];
177177
expand_deps(git, [{Name, Vsn, Deps} | Rest]) ->
178178
Dep = {Name, Vsn, {git, "https://example.org/user/"++Name++".git", {tag, Vsn}}},
@@ -187,7 +187,7 @@ expand_deps(mixed, [{Name, Deps} | Rest]) ->
187187
Dep = if hd(Name) >= $a, hd(Name) =< $z ->
188188
{pkg, rebar_string:uppercase(Name), "0.0.0", undefined, undefined}
189189
; hd(Name) >= $A, hd(Name) =< $Z ->
190-
{Name, ".*", {git, "https://example.org/user/"++Name++".git", "master"}}
190+
{Name, ".*", {git, "https://example.org/user/"++Name++".git", "main"}}
191191
end,
192192
[{Dep, expand_deps(mixed, Deps)} | expand_deps(mixed, Rest)];
193193
expand_deps(mixed, [{Name, Vsn, Deps} | Rest]) ->

0 commit comments

Comments
 (0)