Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel] Migrate rules_python and dependents to bzlmod #25650

Merged
merged 7 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[bazel] Add bzlmod support for lowrisc_misc_linters
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
  • Loading branch information
jwnrt committed Dec 16, 2024
commit 06341f4453d400729f39a48a6f386977e7efd5b8
2 changes: 1 addition & 1 deletion quality/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

load("@bazelbuild_buildtools//buildifier:def.bzl", "buildifier", "buildifier_test")
load("@lowrisc_lint//rules:rules.bzl", "licence_test")
load("@lowrisc_misc_linters//rules:rules.bzl", "licence_test")
load("//rules:quality.bzl", "clang_format_check", "clang_format_test", "clang_tidy_rv_test", "clang_tidy_test", "html_coverage_report", "rustfmt_fix", "rustfmt_test")

package(default_visibility = ["//visibility:public"])
4 changes: 2 additions & 2 deletions third_party/lint/deps.bzl
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("@lowrisc_lint//rules:deps.bzl", "lowrisc_misc_linters_dependencies")
load("@lowrisc_lint//rules:pip.bzl", "lowrisc_misc_linters_pip_dependencies")
load("@lowrisc_misc_linters//rules:deps.bzl", "lowrisc_misc_linters_dependencies")
load("@lowrisc_misc_linters//rules:pip.bzl", "lowrisc_misc_linters_pip_dependencies")

def lint_deps():
lowrisc_misc_linters_dependencies()
11 changes: 11 additions & 0 deletions third_party/lint/lint.MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

bazel_dep(name = "lowrisc_misc_linters")

git_override(
module_name = "lowrisc_misc_linters",
commit = "13303cfa284e8b8c7040c6ad716b0b0c55e0aa8d",
remote = "https://github.com/lowRISC/misc-linters",
)
6 changes: 3 additions & 3 deletions third_party/lint/repos.bzl
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("//rules:repo.bzl", "http_archive_or_local")

def lint_repos(lowrisc_lint = None):
def lint_repos(lowrisc_misc_linters = None):
# We have a 'vendored' copy of the google_verible_verilog_syntax_py repo
native.local_repository(
name = "google_verible_verilog_syntax_py",
@@ -20,8 +20,8 @@ def lint_repos(lowrisc_lint = None):
)

http_archive_or_local(
name = "lowrisc_lint",
local = lowrisc_lint,
name = "lowrisc_misc_linters",
local = lowrisc_misc_linters,
sha256 = "365fe67d8168fee1a0fc3aea4bb80588bf721dc4fc83b40463b09eb50897cda3",
strip_prefix = "misc-linters-20240823_01",
url = "https://github.com/lowRISC/misc-linters/archive/refs/tags/20240823_01.tar.gz",