Skip to content

launchableinc/pre-commit-buildifier-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-buildifier-docker

A pre-commit hook that runs buildifier via Docker. This formats Bazel's BUILD, WORKSPACE, and *.bzl files.

pre-commit supports multiple ways to implement hooks. Since buildifier is written in Go and integrated with Bazel, it could have used golang, system (and run bazel run //:buildifier), docker, and docker_image. This hook uses docker. This is beneficial for the situation where (1) you cannot expect the Go runtime being installed on the system and (2) you want to avoid running Bazel because it cannot concurrently run two invocations. Since there's no existing Docker image for buildifier, this uses docker instead of docker_image.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published