From 4136d7791c2257f5d7564c88e2fec30ed094bb4c Mon Sep 17 00:00:00 2001 From: "Steven E. Harris" Date: Wed, 15 Feb 2023 12:58:16 -0500 Subject: [PATCH] Add rules_cue@0.2.0 (#430) 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. --- modules/rules_cue/0.2.0/MODULE.bazel | 21 +++++++++++++++++++ modules/rules_cue/0.2.0/presubmit.yml | 30 +++++++++++++++++++++++++++ modules/rules_cue/0.2.0/source.json | 5 +++++ modules/rules_cue/metadata.json | 17 +++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 modules/rules_cue/0.2.0/MODULE.bazel create mode 100644 modules/rules_cue/0.2.0/presubmit.yml create mode 100644 modules/rules_cue/0.2.0/source.json create mode 100644 modules/rules_cue/metadata.json diff --git a/modules/rules_cue/0.2.0/MODULE.bazel b/modules/rules_cue/0.2.0/MODULE.bazel new file mode 100644 index 00000000000..a3789e06a42 --- /dev/null +++ b/modules/rules_cue/0.2.0/MODULE.bazel @@ -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") diff --git a/modules/rules_cue/0.2.0/presubmit.yml b/modules/rules_cue/0.2.0/presubmit.yml new file mode 100644 index 00000000000..233f0976e2b --- /dev/null +++ b/modules/rules_cue/0.2.0/presubmit.yml @@ -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 diff --git a/modules/rules_cue/0.2.0/source.json b/modules/rules_cue/0.2.0/source.json new file mode 100644 index 00000000000..e030f592230 --- /dev/null +++ b/modules/rules_cue/0.2.0/source.json @@ -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" +} diff --git a/modules/rules_cue/metadata.json b/modules/rules_cue/metadata.json new file mode 100644 index 00000000000..083da5baef4 --- /dev/null +++ b/modules/rules_cue/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/seh/rules_cue", + "maintainers": [ + { + "email": "seh@panix.com", + "github": "seh", + "name": "Steven E. Harris" + } + ], + "repository": [ + "github:seh/rules_cue" + ], + "versions": [ + "0.2.0" + ], + "yanked_versions": {} +}