Gazelle: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:
=Overview=
=Overview=


Gazelle is a [[Bazel_BUILD_Files#Overview|BUILD file]] generator for Bazel projects.
Gazelle is a [[Bazel_BUILD_Files#Overview|BUILD file]] generator for Bazel projects.  It can create new <code>[[Bazel_BUILD_Files#Overview|BUILD.bazel]]</code> files for a project that follows language conventions, and it can update existing build files to include new sources, dependencies, and options.
 
Gazelle natively supports Go and [[Protocol_Buffers#Overview|protobuf]].


Updates Bazel configuration files.  
Updates Bazel configuration files.  

Revision as of 05:59, 23 November 2024

External

Internal

Overview

Gazelle is a BUILD file generator for Bazel projects. It can create new BUILD.bazel files for a project that follows language conventions, and it can update existing build files to include new sources, dependencies, and options.

Gazelle natively supports Go and protobuf.

Updates Bazel configuration files.

Example:

bazel run //:gazelle -- update-repos golang.org/x/sys@v0.13.0

adds the following line to the WORKSPACE file:

go_repository(
    name = "org_golang_x_sys",
    importpath = "golang.org/x/sys",
    sum = "h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=",
    version = "v0.13.0",
)