Skip to content

Commit

Permalink
[bazel] Add buildifier top-level target
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 19, 2023
1 parent 5a5a9ca commit 09f85ec
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions BUILD.bazel
@@ -1,3 +1,4 @@
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("//common:browsers.bzl", "chrome_data", "firefox_data")
load("//java:browsers.bzl", "chrome_jvm_flags", "firefox_jvm_flags")
load("//java:defs.bzl", "artifact")
Expand Down Expand Up @@ -59,3 +60,12 @@ platform(
"@platforms//cpu:x86_64",
],
)

buildifier(
name = "buildifier",
# lint_mode = "fix",
mode = "fix",
tags = [
"manual",
],
)
26 changes: 26 additions & 0 deletions WORKSPACE
Expand Up @@ -101,6 +101,23 @@ rules_proto_dependencies()

rules_proto_toolchains()

# The go rules are often a dependency of _something_, so loading the version
# we want early
http_archive(
name = "io_bazel_rules_go",
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains(version = "1.19.3")

http_archive(
name = "rules_jvm_external",
patch_args = [
Expand Down Expand Up @@ -315,3 +332,12 @@ rb_bundle(
],
gemfile = "//:rb/Gemfile",
)

http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "65391537d1ef528bf772ae25d2c163bd5cee6a929b06cad985e0734f1a12610b",
strip_prefix = "buildtools-6.1.2",
urls = [
"https://github.com/bazelbuild/buildtools/archive/refs/tags/v6.1.2.zip",
],
)

0 comments on commit 09f85ec

Please sign in to comment.