Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions modules/aspect_rules_lint/2.5.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
"Bazel dependencies"

module(
name = "aspect_rules_lint",
bazel_compatibility = [">=7.6.0"],
compatibility_level = 1,
version = "2.5.0",
)

# NOTE: when publishing to BCR, we patch this to be True, as we publish pre-built binaries with our releases.
IS_RELEASE = True

# We don't actually depend directly on aspect_bazel_lib, but we do require this
# version be used transitively so that it doesn't produce conflicting actions
# with the bazel_lib module we use.
# see https://github.com/bazelbuild/bazel/pull/25509
bazel_dep(name = "aspect_bazel_lib", version = "2.22.0", repo_name = None)

# Force our dependents to a Bazel-9.0.1 compatible version of rules_nodejs
bazel_dep(name = "rules_nodejs", version = "6.7.3", repo_name = None)

# 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 = "aspect_tools_telemetry", version = "0.2.8")
bazel_dep(name = "bazel_features", version = "1.0.0")
bazel_dep(name = "bazel_lib", version = "3.0.0")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "diff.bzl", version = "0.5.1")
bazel_dep(name = "jq.bzl", version = "0.6.0")
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "rules_multirun", version = "0.9.0")
bazel_dep(name = "rules_multitool", version = "0.11.0")
bazel_dep(name = "rules_shell", version = "0.5.0")
bazel_dep(name = "rules_java", version = "7.0.6")

# Needed in the root because we use the run_clippy action in our aspect impl
bazel_dep(name = "rules_rust", version = "0.67.0")

# Needed in the root because we dereference ProtoInfo in our aspect impl
bazel_dep(name = "rules_proto", version = "7.1.0")

# Needed in the root because we dereference PyInfo in our ty aspect impl
bazel_dep(name = "rules_python", version = "0.26.0")

# Needed in the root because we dereference the toolchain in our aspect impl
bazel_dep(name = "rules_buf", version = "0.5.2")

tel = use_extension("@aspect_tools_telemetry//:extension.bzl", "telemetry")
use_repo(tel, "aspect_tools_telemetry_report")

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 ########

bazel_dep(name = "bazelrc-preset.bzl", version = "1.1.0", dev_dependency = True)
bazel_dep(name = "protobuf", version = "33.4", dev_dependency = True)

# To allow /tools to be built from source
bazel_dep(
name = "gazelle",
version = "0.43.0",
dev_dependency = IS_RELEASE,
)
bazel_dep(
name = "rules_go",
version = "0.59.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",
)
17 changes: 17 additions & 0 deletions modules/aspect_rules_lint/2.5.0/attestations.json
Original file line number Diff line number Diff line change
@@ -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/v2.5.0/source.json.intoto.jsonl",
"integrity": "sha256-ajsF23o2GJWXZp3UEnooHiWu92Or0CRr7mvoUmQZxrw="
},
"MODULE.bazel": {
"url": "https://github.com/aspect-build/rules_lint/releases/download/v2.5.0/MODULE.bazel.intoto.jsonl",
"integrity": "sha256-y7i7LtAc1J0gsG32U8qObQUtUnuil8c2gFh0BpELbq0="
},
"rules_lint-v2.5.0.tar.gz": {
"url": "https://github.com/aspect-build/rules_lint/releases/download/v2.5.0/rules_lint-v2.5.0.tar.gz.intoto.jsonl",
"integrity": "sha256-MHRrtsqk5744jAFtxAKtlb0L4s51C8NZWtBAezOMt3U="
}
}
}
5 changes: 5 additions & 0 deletions modules/aspect_rules_lint/2.5.0/patches/go_dev_deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -10,1 +10,1 @@
-IS_RELEASE = False
+IS_RELEASE = True
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -3,8 +3,9 @@
module(
name = "aspect_rules_lint",
bazel_compatibility = [">=7.6.0"],
compatibility_level = 1,
+ version = "2.5.0",
)

# NOTE: when publishing to BCR, we patch this to be True, as we publish pre-built binaries with our releases.
IS_RELEASE = True
13 changes: 13 additions & 0 deletions modules/aspect_rules_lint/2.5.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- debian10
- macos
bazel: [7.x, 8.x, 9.0.0]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "@aspect_rules_lint//lint:all"
- "@aspect_rules_lint//format:all"
11 changes: 11 additions & 0 deletions modules/aspect_rules_lint/2.5.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"integrity": "sha256-WJ48QkAh4OPb32jZqWoFj64nuVafPGxFuksE7aCRuog=",
"strip_prefix": "rules_lint-2.5.0",
"docs_url": "https://github.com/aspect-build/rules_lint/releases/download/v2.5.0/rules_lint-v2.5.0.docs.tar.gz",
"url": "https://github.com/aspect-build/rules_lint/releases/download/v2.5.0/rules_lint-v2.5.0.tar.gz",
"patches": {
"go_dev_deps.patch": "sha256-podgKBN/RKQBRxDCBcwZ3uTuB/1GNqCUztmZHY6YDsY=",
"module_dot_bazel_version.patch": "sha256-LB9/L/HG6kYY/HQ3xHaD5Mxs2WXVzT95ozP8hsDqwzA="
},
"patch_strip": 1
}
23 changes: 18 additions & 5 deletions modules/aspect_rules_lint/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
"homepage": "https://github.com/aspect-build/rules_lint",
"maintainers": [
{
"email": "alex@aspect.build",
"github": "alexeagle",
"name": "Alex Eagle",
"github_user_id": 47395
"email": "jesse@aspect.build",
"github": "JesseTatasciore",
"name": "Jesse Tatasciore",
"github_user_id": 11635434
},
{
"email": "sahin@aspect.build",
"github": "thesayyn",
"name": "Şahin Yort",
"github_user_id": 20563340
},
{
"email": "jason@aspect.build",
"github": "jbedard",
"name": "Jason Bedard",
"github_user_id": 89246
}
],
"repository": [
Expand Down Expand Up @@ -85,7 +97,8 @@
"2.0.0",
"2.1.0",
"2.2.0",
"2.3.0"
"2.3.0",
"2.5.0"
],
"yanked_versions": {}
}
Loading