Skip to content

Commit e350dd8

Browse files
always export needs.json & bugfixes (#21)
1 parent 3713652 commit e350dd8

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/license_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main
2929
with:
3030
repo-url: "${{ github.server_url }}/${{ github.repository }}"
31+
bazel-target: "//src:license-check"
3132
secrets:
3233
dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}

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 = "0.2.0",
16+
version = "0.2.1",
1717
compatibility_level = 0,
1818
)
1919

src/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ score_virtualenv(
3030
"@score_docs_as_code//src/extensions/score_layout:score_layout",
3131
"@score_docs_as_code//src/extensions/score_metamodel:score_metamodel",
3232
"@score_docs_as_code//src/extensions/score_source_code_linker:score_source_code_linker",
33-
],
33+
] + all_requirements,
3434
)
3535
# These are only exported because they're passed as files to the //docs.bzl
3636
# macros, and thus must be visible to other packages. They should only be

src/extensions/score_metamodel/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ def setup(app: Sphinx) -> dict[str, str | bool]:
290290
app.config.graph_checks = metamodel["needs_graph_check"]
291291
app.config.stop_words = metamodel["stop_words"]
292292
app.config.weak_words = metamodel["weak_words"]
293+
294+
# Ensure that 'needs.json' is always build.
295+
app.config.needs_build_json = True
296+
app.config.needs_reproducible_json = True
297+
app.config.needs_json_remove_defaults = True
298+
293299
app.connect("config-inited", parse_external_needs_sources)
294300

295301
discover_checks()

0 commit comments

Comments
 (0)