Gazelle: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Bazel Concepts =Overview= Updates Bazel configuration files. Example: <syntaxhighlight lang='bash'> bazel run //:gazelle -- update-repos golang.org/x/sys@v0.13.0 </syntaxhighlight> adds the following line to the <code>WORKSPACE</code> file: <syntaxhighlight lang='go'> go_repository( name = "org_golang_x_sys", importpath = "golang.org/x/sys", sum = "h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=", version = "v0....")
 
No edit summary
Line 1: Line 1:
=External=
* https://github.com/bazel-contrib/bazel-gazelle/
=Internal=
=Internal=
* [[Bazel_Concepts#Gazelle|Bazel Concepts]]
* [[Bazel_Concepts#Gazelle|Bazel Concepts]]

Revision as of 05:56, 23 November 2024

External

Internal

Overview

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",
)