-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Bzlmod support to the rules. Some breaking changes: * Requires Bazel 7 due to various fixes that are not in 6 that are required for bzlmod to work properly * Users will have to regenerate paket2bazel files. If they were using multiple dependency groups they will now be split up into multiple files.
- Loading branch information
Showing
145 changed files
with
17,942 additions
and
839 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,164 +1,24 @@ | ||
--- | ||
bazel: 6.3.2 | ||
|
||
buildifier: | ||
version: latest | ||
version: 6.3.3 | ||
|
||
matrix: | ||
platform: ["windows", "ubuntu1804", "rbe_ubuntu1604", "macos"] | ||
working_directory: ["", "examples"] | ||
strict_deps: ["--@rules_dotnet//dotnet/settings:strict_deps=true", "--@rules_dotnet//dotnet/settings:strict_deps=false"] | ||
flag_combo: [["--enable_bzlmod", "--@rules_dotnet//dotnet/settings:strict_deps=true"], ["--enable_bzlmod", "--@rules_dotnet//dotnet/settings:strict_deps=false"], ["--noenable_bzlmod", "--@rules_dotnet//dotnet/settings:strict_deps=true"], ["--noenable_bzlmod", "--@rules_dotnet//dotnet/settings:strict_deps=false"]] | ||
|
||
tasks: | ||
windows: | ||
name: Rules on Windows | ||
platform: windows | ||
include_json_profile: | ||
- build | ||
- test | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
ubuntu1804: | ||
name: Rules on Linux | ||
platform: ubuntu1804 | ||
include_json_profile: | ||
- build | ||
- test | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
rbe_ubuntu1604: | ||
name: Rules on Linux (RBE) | ||
platform: rbe_ubuntu1604 | ||
include_json_profile: | ||
- build | ||
- test | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
rbe_ubuntu1604_no_strict_deps: | ||
name: Rules on Linux (RBE) without strict deps | ||
platform: rbe_ubuntu1604 | ||
include_json_profile: | ||
- build | ||
- test | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--@rules_dotnet//dotnet/settings:strict_deps=false" | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--@rules_dotnet//dotnet/settings:strict_deps=false" | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
macos: | ||
name: Rules on MacOS | ||
platform: macos | ||
include_json_profile: | ||
- build | ||
- test | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
examples-windows: | ||
name: Examples on Windows | ||
platform: windows | ||
include_json_profile: | ||
- build | ||
- test | ||
working_directory: examples | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
examples-ubuntu1804: | ||
name: Examples on Ubuntu 18.04 | ||
platform: ubuntu1804 | ||
include_json_profile: | ||
- build | ||
- test | ||
working_directory: examples | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
examples-macos: | ||
name: Examples on macOS | ||
platform: macos | ||
include_json_profile: | ||
- build | ||
- test | ||
working_directory: examples | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--noenable_bzlmod" | ||
examples-rbe_ubuntu1604: | ||
name: Examples on Ubuntu 18.04 (RBE) | ||
platform: rbe_ubuntu1604 | ||
include_json_profile: | ||
- build | ||
- test | ||
working_directory: examples | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--config=remote" | ||
- "--noenable_bzlmod" | ||
examples-rbe_ubuntu1604_no_strict_deps: | ||
name: Examples on Ubuntu 18.04 (RBE) without strict deps | ||
platform: rbe_ubuntu1604 | ||
test_all: | ||
name: Build and test | ||
platform: ${{ platform }} | ||
working_directory: ${{ working_directory }} | ||
include_json_profile: | ||
- build | ||
- test | ||
working_directory: examples | ||
build_targets: | ||
- "//..." | ||
test_targets: | ||
- "//..." | ||
build_flags: | ||
- "--config=remote" | ||
- "--@rules_dotnet//dotnet/settings:strict_deps=false" | ||
- "--noenable_bzlmod" | ||
test_flags: | ||
- "--config=remote" | ||
- "--@rules_dotnet//dotnet/settings:strict_deps=false" | ||
- "--noenable_bzlmod" | ||
build_flags: ${{ flag_combo }} | ||
test_flags: ${{ flag_combo }} |
This file contains 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
examples | ||
e2e |
This file contains 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 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 |
---|---|---|
@@ -1 +1 @@ | ||
6.3.2 | ||
7.0.0rc4 |
This file contains 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,9 @@ | ||
# Bazel Central Registry | ||
|
||
When the ruleset is released, we want it to be published to the | ||
Bazel Central Registry automatically: | ||
<https://registry.bazel.build> | ||
|
||
This folder contains configuration files to automate the publish step. | ||
See <https://github.com/bazel-contrib/publish-to-bcr/blob/main/templates/README.md> | ||
for authoritative documentation about these files. |
This file contains 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,4 @@ | ||
# See https://github.com/bazel-contrib/publish-to-bcr#a-note-on-release-automation | ||
fixedReleaser: | ||
login: purkhusid | ||
email: purkhusid@gmail.com |
This file contains 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,15 @@ | ||
{ | ||
"homepage": "https://github.com/bazelbuild/rules_dotnet", | ||
"maintainers": [ | ||
{ | ||
"name": "Daníel Poul Purkhús", | ||
"email": "purkhusid@gmail.com", | ||
"github": "purkhusid" | ||
} | ||
], | ||
"repository": [ | ||
"github:bazelbuild/rules_dotnet" | ||
], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains 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,10 @@ | ||
bcr_test_module: | ||
module_path: "e2e/smoke" | ||
matrix: | ||
platform: ["debian10", "macos", "ubuntu2004", "windows"] | ||
tasks: | ||
run_tests: | ||
name: "Run smoke test" | ||
platform: ${{ platform }} | ||
test_targets: | ||
- "//..." |
This file contains 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,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "{REPO}-{VERSION}", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_dotnet-{TAG}.tar.gz" | ||
} |
Empty file.
This file contains 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,15 @@ | ||
# This file contains Bazel settings to apply on CI only. | ||
# It is referenced with a --bazelrc option in the call to bazel in ci.yaml | ||
|
||
# Debug where options came from | ||
build --announce_rc | ||
# This directory is configured in GitHub actions to be persisted between runs. | ||
# We do not enable the repository cache to cache downloaded external artifacts | ||
# as these are generally faster to download again than to fetch them from the | ||
# GitHub actions cache. | ||
build --disk_cache=~/.cache/bazel | ||
# Don't rely on test logs being easily accessible from the test runner, | ||
# though it makes the log noisier. | ||
test --test_output=errors | ||
# Allows tests to run bazelisk-in-bazel, since this is the cache folder used | ||
test --test_env=XDG_CACHE_HOME |
This file contains 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 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.