Skip to content

Commit eadb379

Browse files
committed
tweak dash_renderer artifact specs & logic
as the recent versions of dash (> 1.21.0) have the `dash_renderer` merged within the dash repo. Namely, we need - grab the `dash_renderer` module from the main `dash` module - to override the `namespace` value with `"dash_renderer" to fetch from the correct URL, we do something similar for the renderer deps just above.
1 parent 1fb750c commit eadb379

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

gen_resources/Sources.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
url = "https://github.com/plotly/dash.git"
55
tag = "v2.0.0"
66
[dash_renderer]
7-
module = "dash_renderer"
7+
module = "dash._dash_renderer"
88
resources_path = "."
99
[components]
1010
[components.dash_html_components]

src/init/resources.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ function setup_renderer_resources()
4545
)
4646
)
4747

48-
DashBase.main_registry().dash_renderer = dash_module_resource_pkg(
49-
renderer_meta["deps"][1],
50-
resource_path = renderer_resource_path,
51-
version = renderer_meta["version"]
52-
)
48+
renderer_renderer_meta = renderer_meta["deps"][1]
49+
DashBase.main_registry().dash_renderer = ResourcePkg(
50+
"dash_renderer",
51+
renderer_resource_path, version = renderer_meta["version"],
52+
dash_module_resource.(renderer_renderer_meta["resources"])
53+
)
5354
end
5455

5556
function load_all_metadata()

0 commit comments

Comments
 (0)