-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove buildifier from dependencies and use pre-commit-hooks instead (#…
…11) * Remove buildifier from dependencies and use pre-commit-hooks instead * Disable the fetching test on macos * fix buildifier errors * remove the buildifier definition * don't use matrix for the different platform tests
- Loading branch information
Showing
6 changed files
with
35 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# See CONTRIBUTING.md for instructions. | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/keith/pre-commit-buildifier | ||
rev: 4.0.1.1 | ||
hooks: | ||
- id: buildifier | ||
args: &args | ||
# Keep this argument in sync with .bazelci/presubmit.yaml | ||
- --warnings=all | ||
- id: buildifier-lint | ||
args: *args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,5 @@ | ||
workspace(name = "com_github_aignas_rules_shellcheck") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
# buildifier is written in Go and hence needs rules_go to be built. | ||
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions. | ||
http_archive( | ||
name = "io_bazel_rules_go", | ||
sha256 = "ab21448cef298740765f33a7f5acee0607203e4ea321219f2a4c85a6e0fb0a27", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.32.0/rules_go-v0.32.0.zip", | ||
"https://github.com/bazelbuild/rules_go/releases/download/v0.32.0/rules_go-v0.32.0.zip", | ||
], | ||
) | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") | ||
|
||
go_rules_dependencies() | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains") | ||
|
||
go_register_toolchains(version = "1.18.2") | ||
|
||
http_archive( | ||
name = "bazel_gazelle", | ||
sha256 = "5982e5463f171da99e3bdaeff8c0f48283a7a5f396ec5282910b9e8a49c0dd7e", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.25.0/bazel-gazelle-v0.25.0.tar.gz", | ||
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.25.0/bazel-gazelle-v0.25.0.tar.gz", | ||
], | ||
) | ||
|
||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") | ||
|
||
# If you use WORKSPACE.bazel, use the following line instead of the bare gazelle_dependencies(): | ||
# gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE.bazel") | ||
gazelle_dependencies() | ||
|
||
http_archive( | ||
name = "com_google_protobuf", | ||
sha256 = "3bd7828aa5af4b13b99c191e8b1e884ebfa9ad371b0ce264605d347f135d2568", | ||
strip_prefix = "protobuf-3.19.4", | ||
urls = [ | ||
"https://github.com/protocolbuffers/protobuf/archive/v3.19.4.tar.gz", | ||
], | ||
) | ||
|
||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | ||
|
||
protobuf_deps() | ||
|
||
http_archive( | ||
name = "com_github_bazelbuild_buildtools", | ||
sha256 = "", | ||
strip_prefix = "buildtools-5.1.0", | ||
urls = [ | ||
"https://github.com/bazelbuild/buildtools/archive/refs/tags/5.1.0.tar.gz", | ||
], | ||
) | ||
|
||
load("//:deps.bzl", "shellcheck_dependencies") | ||
|
||
shellcheck_dependencies() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters