Skip to content

Commit 894c25b

Browse files
authored
Switch to HEAD.zip when downloading archive from github. (#806)
This works regardless of the name of the primary branch so that the code will continue to work if/when we rename `main` to `master`. See: #805
1 parent b4c9194 commit 894c25b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

emsdk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444

4545
emscripten_releases_download_url_template = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries.%s"
4646

47-
emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/master.zip'
47+
# This was previously `master.zip` but we are transitioning to `main` and
48+
# `HEAD.zip` works for both cases. In future we could switch this to
49+
# `main.zip` perhaps.
50+
emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/HEAD.zip'
4851

4952
zips_subdir = 'zips/'
5053

0 commit comments

Comments
 (0)