Skip to content

Commit 7e3c046

Browse files
authored
Error on the master branch, and direct people to main. See #805 (#823)
See #805 The behavior is now: $ ./emsdk install 2.0.0 **** Error: You appear to be using the `master` branch of emsdk. We recently made the switch to using `main` In order to continue to receive updates you will need to make the switch locally too. For normal clones without any local branches simply running the following command should be enough: `git checkout main` For more information see #805 **** $ echo $? 1 If you see this error, you are using master, and should switch to main, which is where development now occurs.
1 parent 619a289 commit 7e3c046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emsdk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2818,13 +2818,14 @@ def main(args):
28182818
if is_emsdk_sourced_from_github():
28192819
# This code only exists on the master branch
28202820
errlog('****')
2821-
errlog('Warning: You appear to be using the `master` branch of emsdk.')
2821+
errlog('Error: You appear to be using the `master` branch of emsdk.')
28222822
errlog('We recently made the switch to using `main`')
28232823
errlog('In order to continue to receive updates you will need to make the switch locally too.')
28242824
errlog('For normal clones without any local branches simply running the following command should be enough:')
28252825
errlog(' `git checkout main`')
28262826
errlog('For more information see https://github.com/emscripten-core/emsdk/issues/805')
28272827
errlog('****')
2828+
return 1
28282829

28292830
if not args:
28302831
errlog("Missing command; Type 'emsdk help' to get a list of commands.")

0 commit comments

Comments
 (0)