From b8be0c178c1588e85016fc44c076fc80f30604e8 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 12 Apr 2023 22:13:01 +0200 Subject: [PATCH] Publish seh/rules_cue@v0.4.0 (#563) Co-authored-by: Steven E. Harris --- modules/rules_cue/0.4.0/MODULE.bazel | 21 +++++++++++++ .../patches/module_dot_bazel_version.patch | 13 ++++++++ modules/rules_cue/0.4.0/presubmit.yml | 30 +++++++++++++++++++ modules/rules_cue/0.4.0/source.json | 9 ++++++ modules/rules_cue/metadata.json | 3 +- 5 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 modules/rules_cue/0.4.0/MODULE.bazel create mode 100644 modules/rules_cue/0.4.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_cue/0.4.0/presubmit.yml create mode 100644 modules/rules_cue/0.4.0/source.json diff --git a/modules/rules_cue/0.4.0/MODULE.bazel b/modules/rules_cue/0.4.0/MODULE.bazel new file mode 100644 index 0000000000..00bb870554 --- /dev/null +++ b/modules/rules_cue/0.4.0/MODULE.bazel @@ -0,0 +1,21 @@ +module( + name = "rules_cue", + version = "0.4.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.39.0") + +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.30.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.4.0/patches/module_dot_bazel_version.patch b/modules/rules_cue/0.4.0/patches/module_dot_bazel_version.patch new file mode 100644 index 0000000000..01380d03cd --- /dev/null +++ b/modules/rules_cue/0.4.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,13 @@ +Index: MODULE.bazel +=================================================================== +--- MODULE.bazel ++++ MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_cue", +- version = "0.0.0", ++ version = "0.4.0", + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") + bazel_dep(name = "platforms", version = "0.0.6") diff --git a/modules/rules_cue/0.4.0/presubmit.yml b/modules/rules_cue/0.4.0/presubmit.yml new file mode 100644 index 0000000000..233f0976e2 --- /dev/null +++ b/modules/rules_cue/0.4.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.4.0/source.json b/modules/rules_cue/0.4.0/source.json new file mode 100644 index 0000000000..6bf7158d28 --- /dev/null +++ b/modules/rules_cue/0.4.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-nqgPmJ0vc4Fh2+ALjLkyGYJ9fFtiC8bKRaxiiJvEURc=", + "strip_prefix": "rules_cue-0.4.0", + "url": "https://github.com/seh/rules_cue/releases/download/v0.4.0/vcs-archive-v0.4.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-BRZvQBj1EkYbI1iJMZfN5vTtJXtwK+2YJU0JC98zPAc=" + }, + "patch_strip": 0 +} diff --git a/modules/rules_cue/metadata.json b/modules/rules_cue/metadata.json index 154a66efad..e8a0b37bd3 100644 --- a/modules/rules_cue/metadata.json +++ b/modules/rules_cue/metadata.json @@ -14,7 +14,8 @@ "0.2.0", "0.2.1", "0.2.2", - "0.3.0" + "0.3.0", + "0.4.0" ], "yanked_versions": {} }