Skip to content

Commit

Permalink
Revert "build buildifier not using bazel cause i cannot make it work"
Browse files Browse the repository at this point in the history
This reverts commit b69ad5a.

Signed-off-by: Chris Koch <chrisko@google.com>
  • Loading branch information
hugelgupf committed May 28, 2021
1 parent 3d6d9c0 commit 25d259c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,10 @@ jobs:
- run:
name: run buildifier
command: |
go install github.com/bazelbuild/buildtools/buildifier@latest
buildifier -r .
#bazel run :buildifier -- -r .
bazel run :buildifier -- -r .
git status
if [[ -n "$(git status --porcelain .)" ]]; then
echo 'BUILD files are out-of-date: run `buildifier -r .` and then check in the changes'
echo 'BUILD files are out-of-date: run `bazel run :buildifier -- -r .` and then check in the changes'
git status --porcelain .
exit 1
fi
Expand Down
5 changes: 5 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

# gazelle:exclude test
# gazelle:exclude vendortest
Expand All @@ -8,3 +9,7 @@ load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(
name = "gazelle",
)

buildifier(
name = "buildifier",
)

0 comments on commit 25d259c

Please sign in to comment.