Update buildifier to the latest version
PiperOrigin-RevId: 223412432
diff --git a/package.bzl b/package.bzl
index d32f6af..2cb87c2 100644
--- a/package.bzl
+++ b/package.bzl
@@ -73,9 +73,9 @@
_maybe(
http_archive,
name = "com_github_bazelbuild_buildtools",
- url = "https://github.com/bazelbuild/buildtools/archive/0.12.0.zip",
- strip_prefix = "buildtools-0.12.0",
- sha256 = "ec495cbd19238c9dc488fd65ca1fee56dcb1a8d6d56ee69a49f2ebe69826c261",
+ url = "https://github.com/bazelbuild/buildtools/archive/0.19.2.1.zip",
+ strip_prefix = "buildtools-0.19.2.1",
+ sha256 = "9176a7df34dbed2cf5171eb56271868824560364e60644348219f852f593ae79",
)
###############################################
diff --git a/ts_auto_deps/updater/updater.go b/ts_auto_deps/updater/updater.go
index 83d1ddb..82eb960 100644
--- a/ts_auto_deps/updater/updater.go
+++ b/ts_auto_deps/updater/updater.go
@@ -212,7 +212,7 @@
data, err := platform.ReadFile(ctx, buildFilePath)
if err != nil {
if os.IsNotExist(err) {
- return &build.File{Path: normalizedG3Path, Build: true}, nil
+ return &build.File{Path: normalizedG3Path, Type: build.TypeBuild}, nil
}
return nil, fmt.Errorf("reading %q: %s", buildFilePath, err)
}
diff --git a/ts_auto_deps/updater/updater_test.go b/ts_auto_deps/updater/updater_test.go
index f4b59ed..1480344 100644
--- a/ts_auto_deps/updater/updater_test.go
+++ b/ts_auto_deps/updater/updater_test.go
@@ -491,7 +491,7 @@
}
func TestAbsoluteBazelTarget(t *testing.T) {
- bld := &build.File{Path: "foo/bar/BUILD", Build: true}
+ bld := &build.File{Path: "foo/bar/BUILD", Type: build.TypeBuild}
tests := []struct{ target, expected string }{
{"//foo/bar:bar", "//foo/bar:bar"},
{":bar", "//foo/bar:bar"},