From c6816d66e01a9a038695d796ff23e8ce3833f40c Mon Sep 17 00:00:00 2001 From: alexeagle <47395+alexeagle@users.noreply.github.com> Date: Wed, 14 May 2025 19:47:04 +0000 Subject: [PATCH] Publish aspect_rules_lint@1.4.3 --- modules/aspect_rules_lint/1.4.3/MODULE.bazel | 83 +++++++++++++++++++ .../aspect_rules_lint/1.4.3/attestations.json | 17 ++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_rules_lint/1.4.3/presubmit.yml | 14 ++++ modules/aspect_rules_lint/1.4.3/source.json | 9 ++ modules/aspect_rules_lint/metadata.json | 3 +- 6 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_lint/1.4.3/MODULE.bazel create mode 100644 modules/aspect_rules_lint/1.4.3/attestations.json create mode 100644 modules/aspect_rules_lint/1.4.3/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_lint/1.4.3/presubmit.yml create mode 100644 modules/aspect_rules_lint/1.4.3/source.json diff --git a/modules/aspect_rules_lint/1.4.3/MODULE.bazel b/modules/aspect_rules_lint/1.4.3/MODULE.bazel new file mode 100644 index 00000000000..ef2789602c8 --- /dev/null +++ b/modules/aspect_rules_lint/1.4.3/MODULE.bazel @@ -0,0 +1,83 @@ +"Bazel dependencies" + +module( + name = "aspect_rules_lint", + version = "1.4.3", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "2.7.7") + +# Needed in the root because we use js_lib_helpers in our aspect impl +# Minimum version needs 'chore: bump bazel-lib to 2.0 by @alexeagle in #1311' +# to allow users on bazel-lib 2.0 +bazel_dep(name = "aspect_rules_js", version = "1.40.0") +bazel_dep(name = "bazel_features", version = "1.0.0") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_multirun", version = "0.9.0") +bazel_dep(name = "rules_multitool", version = "0.4.0") +bazel_dep(name = "rules_diff", version = "1.0.0") + +# Needed in the root because we dereference ProtoInfo in our aspect impl +bazel_dep(name = "rules_proto", version = "6.0.0") + +# Needed in the root because we dereference the toolchain in our aspect impl +bazel_dep(name = "rules_buf", version = "0.1.1") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//format:multitool.lock.json") +multitool.hub(lockfile = "//lint:multitool.lock.json") +use_repo(multitool, "multitool") + +rules_lint_toolchains = use_extension("@aspect_rules_lint//lint:extensions.bzl", "toolchains") +rules_lint_toolchains.sarif_parser() +use_repo(rules_lint_toolchains, "sarif_parser_toolchains") + +register_toolchains("@sarif_parser_toolchains//:all") + +####### Dev dependencies ######## + +# To allow /tools to be built from source +# NB: this is stamped by git archive, see .gitattributes +_VERSION_PRIVATE = "v1.4.3" + +# If the version is like v1.2.3 but NOT like v2.0.3-7-g57bfe2c1, then there are pre-built binaries +IS_RELEASE = _VERSION_PRIVATE.startswith("v") and _VERSION_PRIVATE.find("g") < 0 + +bazel_dep( + name = "toolchains_protoc", + version = "0.4.1", + dev_dependency = IS_RELEASE, +) +bazel_dep( + name = "gazelle", + version = "0.43.0", + dev_dependency = IS_RELEASE, +) +bazel_dep( + name = "rules_go", + version = "0.54.0", + dev_dependency = IS_RELEASE, + repo_name = "io_bazel_rules_go", +) + +go_sdk = use_extension( + "@io_bazel_rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = IS_RELEASE, +) +go_sdk.download(version = "1.23.9") + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = IS_RELEASE, +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_onsi_gomega", + "com_github_reviewdog_errorformat", + "com_github_reviewdog_reviewdog", +) diff --git a/modules/aspect_rules_lint/1.4.3/attestations.json b/modules/aspect_rules_lint/1.4.3/attestations.json new file mode 100644 index 00000000000..f19ff029220 --- /dev/null +++ b/modules/aspect_rules_lint/1.4.3/attestations.json @@ -0,0 +1,17 @@ +{ + "mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0", + "attestations": { + "source.json": { + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.4.3/source.json.intoto.jsonl", + "integrity": "sha256-4ThO7IgkKtkReXilHtYawogEG+0Pt0dFrc7LH0eXiLU=" + }, + "MODULE.bazel": { + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.4.3/MODULE.bazel.intoto.jsonl", + "integrity": "sha256-GbiJ4vndfN1UKSccQGyUsMy4NYVQCV22ZXF2+M1iW54=" + }, + "rules_lint-v1.4.3.tar.gz": { + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.4.3/rules_lint-v1.4.3.tar.gz.intoto.jsonl", + "integrity": "sha256-lfpSYxMJKIBuX30VtTXH0pM3nCUql105qLz2Od6Mkeg=" + } + } +} diff --git a/modules/aspect_rules_lint/1.4.3/patches/module_dot_bazel_version.patch b/modules/aspect_rules_lint/1.4.3/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..bdaa3a0ee9d --- /dev/null +++ b/modules/aspect_rules_lint/1.4.3/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "aspect_rules_lint", +- version = "0.0.0", ++ version = "1.4.3", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "2.7.7") diff --git a/modules/aspect_rules_lint/1.4.3/presubmit.yml b/modules/aspect_rules_lint/1.4.3/presubmit.yml new file mode 100644 index 00000000000..61690eaffd0 --- /dev/null +++ b/modules/aspect_rules_lint/1.4.3/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "example" + matrix: + bazel: ["7.x"] + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + BAZELISK_BASE_URL: "https://github.com/bazelbuild/bazel/releases/download/" + test_targets: + - "//..." diff --git a/modules/aspect_rules_lint/1.4.3/source.json b/modules/aspect_rules_lint/1.4.3/source.json new file mode 100644 index 00000000000..2bb5323a8e8 --- /dev/null +++ b/modules/aspect_rules_lint/1.4.3/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-zq6Zangj+uV3hvQAlqDodaujL2f66+/0IjceCf08JMQ=", + "strip_prefix": "rules_lint-1.4.3", + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.4.3/rules_lint-v1.4.3.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-SprN0vh396jZrDdb6mMuHGb6R4KYhcdMrNN7iiREjj4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_lint/metadata.json b/modules/aspect_rules_lint/metadata.json index cb3b7a91b64..52b3c43a230 100644 --- a/modules/aspect_rules_lint/metadata.json +++ b/modules/aspect_rules_lint/metadata.json @@ -63,7 +63,8 @@ "1.3.4", "1.3.5", "1.4.0", - "1.4.2" + "1.4.2", + "1.4.3" ], "yanked_versions": {} }