Skip to content

Commit bb52c96

Browse files
Fix: allow multiple dependencies + bump version (#298)
1 parent 22ce639 commit bb52c96

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
module(
1515
name = "score_docs_as_code",
16-
version = "2.0.0",
16+
version = "2.0.1",
1717
compatibility_level = 2,
1818
)
1919

src/extensions/score_metamodel/external_needs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ def add_external_needs_json(e: ExternalNeedsSource, config: Config):
179179
)
180180
# Attempt to continue, exit code will be non-zero after a logged error anyway.
181181
return
182-
# this sets the default value - required for the needs-config-writer
183-
# setting 'needscfg_exclude_defaults = True' to see the diff
184-
config.needs_external_needs = []
185182
assert isinstance(config.needs_external_needs, list) # pyright: ignore[reportUnknownMemberType]
186183
config.needs_external_needs.append( # pyright: ignore[reportUnknownMemberType]
187184
{
@@ -217,6 +214,10 @@ def connect_external_needs(app: Sphinx, config: Config):
217214

218215
external_needs = get_external_needs_source(app.config.external_needs_source)
219216

217+
# this sets the default value - required for the needs-config-writer
218+
# setting 'needscfg_exclude_defaults = True' to see the diff
219+
config.needs_external_needs = []
220+
220221
for e in external_needs:
221222
assert not e.path_to_target # path_to_target is always empty
222223

0 commit comments

Comments
 (0)