-
Notifications
You must be signed in to change notification settings - Fork 5
feat(repo-policy-sync): manage Bazel dev dependencies #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AlexanderLanin
merged 7 commits into
eclipse-score:main
from
AlexanderLanin:feat/ensure-bazel-dev-dependency
Sep 11, 2026
+665
−7
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b45c2de
feat(repo-policy-sync): manage Bazel dev dependencies
AlexanderLanin d169534
refactor(repo-policy-sync): fix Bazel module file
AlexanderLanin e210d3d
feat(repo-policy-sync): align Bazel dev dependencies
AlexanderLanin 7f722b9
feat(repo-policy-sync): add Bazel dependency alignment policy
AlexanderLanin 3523ca0
refactor(repo-policy-sync): simplify alignment policy name
AlexanderLanin 607252d
fix(repo-policy-sync): add policy copyright headers
AlexanderLanin 7914dbf
fix(repo-policy-sync): handle commented Bazel arguments
AlexanderLanin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
repo_policy_sync/policies/dev-dependency-alignment/mixed-dependencies/after/MODULE.bazel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| module(name = "example") | ||
|
|
||
| bazel_dep(name = "score_bazel_cpp_toolchains", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "aspect_rules_py", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "buildifier_prebuilt", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "aspect_rules_lint", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "score_rules_imagefs", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "score_docs_as_code", version = "1.0.0") | ||
| bazel_dep(name = "unrelated_dependency", version = "1.0.0") |
23 changes: 23 additions & 0 deletions
23
repo_policy_sync/policies/dev-dependency-alignment/mixed-dependencies/before/MODULE.bazel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| module(name = "example") | ||
|
|
||
| bazel_dep(name = "score_bazel_cpp_toolchains", version = "1.0.0") | ||
| bazel_dep(name = "aspect_rules_py", version = "1.0.0", dev_dependency = False) | ||
| bazel_dep(name = "buildifier_prebuilt", version = "1.0.0") | ||
| bazel_dep(name = "aspect_rules_lint", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "toolchains_llvm", version = "1.0.0") | ||
| bazel_dep(name = "score_rules_imagefs", version = "1.0.0", dev_dependency = False) | ||
| bazel_dep(name = "score_docs_as_code", version = "1.0.0", dev_dependency = True) | ||
| bazel_dep(name = "unrelated_dependency", version = "1.0.0") |
16 changes: 16 additions & 0 deletions
16
repo_policy_sync/policies/dev-dependency-alignment/no-target-dependencies/after/MODULE.bazel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| module(name = "example") | ||
|
|
||
| bazel_dep(name = "unrelated_dependency", version = "1.0.0") |
16 changes: 16 additions & 0 deletions
16
..._policy_sync/policies/dev-dependency-alignment/no-target-dependencies/before/MODULE.bazel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| module(name = "example") | ||
|
|
||
| bazel_dep(name = "unrelated_dependency", version = "1.0.0") |
58 changes: 58 additions & 0 deletions
58
repo_policy_sync/policies/dev-dependency-alignment/policy.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
| title: "chore(bazel): align development-only dependencies" | ||
| description: | | ||
| Keep Bazel toolchain, lint, image, and documentation dependencies in the | ||
| intended dependency graph. The listed build-support dependencies are | ||
| development-only, while score_docs_as_code is used by the normal build graph. | ||
|
|
||
| when: | ||
| bazel: | ||
| any_direct_module_dependencies: | ||
| - score_bazel_cpp_toolchains | ||
| - aspect_rules_py | ||
| - buildifier_prebuilt | ||
| - aspect_rules_lint | ||
| - toolchains_llvm | ||
| - score_rules_imagefs | ||
| - score_docs_as_code | ||
|
|
||
| ensure: | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: score_bazel_cpp_toolchains | ||
| dev_dependency: true | ||
| rationale: Toolchain setup is only needed for development and validation. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: aspect_rules_py | ||
| dev_dependency: true | ||
| rationale: Python build rules are only needed for development and validation. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: buildifier_prebuilt | ||
| dev_dependency: true | ||
| rationale: Buildifier is a development-time formatting tool. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: aspect_rules_lint | ||
| dev_dependency: true | ||
| rationale: Lint rules are only needed for development and validation. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: toolchains_llvm | ||
| dev_dependency: true | ||
| rationale: LLVM toolchains are only needed for development and validation. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: score_rules_imagefs | ||
| dev_dependency: true | ||
| rationale: Image filesystem rules are only needed for development and validation. | ||
| - type: ensure_bazel_dependency_dev_dependency | ||
| module_name: score_docs_as_code | ||
| dev_dependency: false | ||
| rationale: Documentation rules are required by the normal build graph. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.