From 894c25b52ae42ca619059e12dbf88c4a3a62f2c5 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 29 Apr 2021 15:48:18 -0700 Subject: [PATCH] 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 --- emsdk.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emsdk.py b/emsdk.py index 666e507..113027b 100644 --- a/emsdk.py +++ b/emsdk.py @@ -44,7 +44,10 @@ emscripten_releases_repo = 'https://chromium.googlesource.com/emscripten-release emscripten_releases_download_url_template = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/%s/%s/wasm-binaries.%s" -emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/master.zip' +# This was previously `master.zip` but we are transitioning to `main` and +# `HEAD.zip` works for both cases. In future we could switch this to +# `main.zip` perhaps. +emsdk_zip_download_url = 'https://github.com/emscripten-core/emsdk/archive/HEAD.zip' zips_subdir = 'zips/'