Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
seh authored Feb 15, 2023
1 parent 605fe2c commit 4136d77
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/rules_cue/0.2.0/MODULE.bazel
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")
30 changes: 30 additions & 0 deletions modules/rules_cue/0.2.0/presubmit.yml
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
5 changes: 5 additions & 0 deletions modules/rules_cue/0.2.0/source.json
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"
}
17 changes: 17 additions & 0 deletions modules/rules_cue/metadata.json
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": {}
}

0 comments on commit 4136d77

Please sign in to comment.