Skip to content

Commit 05328c4

Browse files
authored
Add warning to those using master branch (#810)
1 parent 894c25b commit 05328c4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

emsdk.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,6 +2842,18 @@ def expand_sdk_name(name, activating):
28422842

28432843

28442844
def main(args):
2845+
2846+
if is_emsdk_sourced_from_github():
2847+
# This code only exists on the master branch
2848+
errlog('****')
2849+
errlog('Warning: You appear to be using the `master` branch of emsdk.')
2850+
errlog('We recently made the switch to using `main`')
2851+
errlog('In order to continue to receive updates you will need to make the switch locally too.')
2852+
errlog('For normal clones without any local branches simply running the following command should be enough:')
2853+
errlog(' `git checkout main`')
2854+
errlog('For more information see https://github.com/emscripten-core/emsdk/issues/805')
2855+
errlog('****')
2856+
28452857
if not args:
28462858
errlog("Missing command; Type 'emsdk help' to get a list of commands.")
28472859
return 1

0 commit comments

Comments
 (0)