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 https://github.com/emscripten-core/emsdk/issues/805
****
$ echo $?
1
If you see this error, you are using master, and should switch to main,
which is where development now occurs.
diff --git a/emsdk.py b/emsdk.py
index 962214c..657d1d5 100644
--- a/emsdk.py
+++ b/emsdk.py
@@ -2818,13 +2818,14 @@
if is_emsdk_sourced_from_github():
# This code only exists on the master branch
errlog('****')
- errlog('Warning: You appear to be using the `master` branch of emsdk.')
+ errlog('Error: You appear to be using the `master` branch of emsdk.')
errlog('We recently made the switch to using `main`')
errlog('In order to continue to receive updates you will need to make the switch locally too.')
errlog('For normal clones without any local branches simply running the following command should be enough:')
errlog(' `git checkout main`')
errlog('For more information see https://github.com/emscripten-core/emsdk/issues/805')
errlog('****')
+ return 1
if not args:
errlog("Missing command; Type 'emsdk help' to get a list of commands.")