From 955e37bf7462b247afd12ad4f646b6c3b013ea1a Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Fri, 1 Apr 2022 10:49:16 -0700 Subject: [PATCH] update buildifier and fix formatting --- .pre-commit-config.yaml | 2 +- BUILD.bazel | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99dcfd2..cd740bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ default_stages: [commit] repos: # Check formatting and lint for starlark code - repo: https://github.com/keith/pre-commit-buildifier - rev: 5.0.0 + rev: 5.0.1 hooks: - id: buildifier - id: buildifier-lint diff --git a/BUILD.bazel b/BUILD.bazel index fade2cf..f88d1d2 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,6 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary") +load("//lib:write_source_files.bzl", "write_source_files") gazelle_binary( name = "gazelle_bin", @@ -22,13 +23,13 @@ bzl_library( ) # write_source_files() to a git ignored subdirectory of the root -load("//lib:write_source_files.bzl", "write_source_files") genrule( name = "write_source_file_root", outs = ["write_source_file-root_directory"], cmd = "mkdir -p $@ && echo 'test' > $@/test.txt", visibility = ["//visibility:private"], ) + write_source_files( name = "write_source_file_root-test", diff_test = False,