Skip to content

Commit f463223

Browse files
committed
still works in workspace right?
1 parent c95ab39 commit f463223

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

MODULE.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"Bazel dependencies, see https://registry.bazel.build"
2-
32
module(name = "workerd")
43

54
bazel_dep(name = "aspect_bazel_lib", version = "2.21.1")
@@ -18,6 +17,7 @@ bazel_dep(name = "platforms", version = "1.0.0")
1817
# needs to be pulled in before rules_cc for this toolchain to actually be used.
1918
bazel_dep(name = "apple_support", version = "1.23.1")
2019
bazel_dep(name = "rules_cc", version = "0.2.8")
20+
2121
bazel_dep(name = "zlib", version = "1.3.1.bcr.6")
2222
git_override(
2323
module_name = "zlib",
@@ -38,11 +38,7 @@ git_override(
3838
bazel_dep(name = "boringssl", version = "0.20250818.0", repo_name = "ssl")
3939

4040
include("//build/deps:deps.MODULE.bazel")
41-
4241
include("//build/deps:nodejs.MODULE.bazel")
43-
4442
include("//build/deps:python.MODULE.bazel")
45-
4643
include("//build/deps:pyodide.MODULE.bazel")
47-
4844
include("//build/deps:v8.MODULE.bazel")

WORKSPACE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,22 @@ new_local_repository(
2626
build_file = "@workerd//deps/rust:BUILD.lolhtml",
2727
path = "empty",
2828
)
29+
30+
# Use @workerd prefix on build_file so we can use this from edgeworker too
31+
# Note: this one is a raw http_archive so the repository gets the old WORKSPACE-style canonical name.
32+
# Otherwise we have the bzlmod apparent name to deal with, which has plus characters and makes Windows testing harder.
33+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
34+
35+
[
36+
http_archive(
37+
name = "all_pyodide_wheels_%s" % tag,
38+
build_file = "@workerd//:build/BUILD.all_pyodide_wheels",
39+
sha256 = all_wheels_hash,
40+
urls = ["https://github.com/cloudflare/pyodide-build-scripts/releases/download/%s/all_wheels.zip" % tag],
41+
)
42+
# FIXME(alexeagle): Keep in sync
43+
for tag, all_wheels_hash in [
44+
("20240829.4", "94653dc8cfbea62b8013db3b8584bc02544ad6fc647b0d83bdee5dfcda5d4b62"),
45+
("20250808", "7228cf17e569e31238f74b00e4cb702f0b4fc1fa55e6a5144be461e75240048b"),
46+
]
47+
]

build/deps/pyodide.MODULE.bazel

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,3 @@ use_repo(
2121
)
2222

2323
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
24-
25-
# Use @workerd prefix on build_file so we can use this from edgeworker too
26-
# Note: this one is a raw http_archive so the repository gets the old WORKSPACE-style canonical name.
27-
# Otherwise we have the bzlmod apparent name to deal with, which has plus characters and makes Windows testing harder.
28-
[
29-
http_archive(
30-
name = "all_pyodide_wheels_%s" % tag,
31-
build_file = "@workerd//:build/BUILD.all_pyodide_wheels",
32-
sha256 = all_wheels_hash,
33-
urls = ["https://github.com/cloudflare/pyodide-build-scripts/releases/download/%s/all_wheels.zip" % tag],
34-
)
35-
# FIXME(alexeagle): Keep in sync
36-
for tag, all_wheels_hash in [
37-
("20240829.4", "94653dc8cfbea62b8013db3b8584bc02544ad6fc647b0d83bdee5dfcda5d4b62"),
38-
("20250808", "7228cf17e569e31238f74b00e4cb702f0b4fc1fa55e6a5144be461e75240048b"),
39-
]
40-
]
41-

0 commit comments

Comments
 (0)