File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def gen_bzl_config(tag, dist):
21
21
bucket_url = "https://pub-45d734c4145d4285b343833ee450ef38.r2.dev/" + tag + "/"
22
22
github_url = "https://github.com/cloudflare/pyodide-build-scripts/releases/download/" + tag + "/"
23
23
lock_bytes = (dist / "pyodide-lock.json" ).read_bytes ()
24
+ lock_contents = (dist / "pyodide-lock.json" ).read_text ()
24
25
lock_hash = hashlib .sha256 (lock_bytes ).hexdigest ()
25
26
zip_bytes = (dist / "pyodide_packages.tar.zip" ).read_bytes ()
26
27
zip_hash = hashlib .sha256 (zip_bytes ).hexdigest ()
@@ -32,6 +33,7 @@ def gen_bzl_config(tag, dist):
32
33
f .write ("PYODIDE_PACKAGE_BUCKET_URL = \" " + bucket_url + "\" \n " )
33
34
f .write ("PYODIDE_GITHUB_RELEASE_URL = \" " + github_url + "\" \n " )
34
35
f .write ("PYODIDE_LOCK_SHA256 = \" " + lock_hash + "\" \n " )
36
+ f .write ("PYODIDE_LOCK_CONTENTS = \" \" \" " + lock_contents + "\" \" \" \n " )
35
37
f .write ("PYODIDE_PACKAGES_TAR_ZIP_SHA256 = \" " + zip_hash + "\" \n " )
36
38
37
39
# creates a package bundle .tar.zip file to be bundled in with edgeworker
You can’t perform that action at this time.
0 commit comments