-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impound Bazel rules for the CUE language's "cue" tool defined in the "seh/rules_cue" GitHub repository. Withdraw promised support for Windows until we resolve #17487.
- Loading branch information
Showing
4 changed files
with
73 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module( | ||
name = "rules_cue", | ||
version = "0.2.0", | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.4.1") | ||
bazel_dep(name = "platforms", version = "0.0.6") | ||
bazel_dep(name = "rules_go", version = "0.38.1") | ||
|
||
cue = use_extension("//cue:extensions.bzl", "cue") | ||
use_repo( | ||
cue, | ||
"cue_tool_toolchains", | ||
) | ||
|
||
register_toolchains("@cue_tool_toolchains//:all") | ||
|
||
bazel_dep(name = "gazelle", version = "0.28.0") | ||
|
||
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") |
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,30 @@ | ||
matrix: &matrix | ||
platform: | ||
- centos7 | ||
- debian10 | ||
- macos | ||
- ubuntu2004 | ||
# Some valid invocations of the "cue" tool can't succeed (e.g. use | ||
# of the "path" and "expression" rules attributes) until we resolve | ||
# or find a reliable workaround for the following issue: | ||
# | ||
# https://github.com/bazelbuild/bazel/issues/17487 | ||
# | ||
# Until then, withdraw promised support for using this module on | ||
# Windows. | ||
#- windows | ||
tasks: | ||
verify_targets: | ||
name: Verify that all tests succeed | ||
platform: ${{ platform }} | ||
test_targets: | ||
- '@rules_cue//test:all' | ||
bcr_test_module: | ||
module_path: examples/bzlmod | ||
matrix: *matrix | ||
tasks: | ||
run_test_module: | ||
name: Run test module | ||
platform: ${{ platform }} | ||
build_targets: | ||
- //root |
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": "sha256-21hSI1FbCOW5KHnbcc8rFi6gLqh3eNXtYLjB3yFaXYo=", | ||
"strip_prefix": "rules_cue-0.2.0", | ||
"url": "https://github.com/seh/rules_cue/archive/refs/tags/v0.2.0.tar.gz" | ||
} |
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,17 @@ | ||
{ | ||
"homepage": "https://github.com/seh/rules_cue", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "seh", | ||
"name": "Steven E. Harris" | ||
} | ||
], | ||
"repository": [ | ||
"github:seh/rules_cue" | ||
], | ||
"versions": [ | ||
"0.2.0" | ||
], | ||
"yanked_versions": {} | ||
} |