Go dependencies are managed by go.mod
and Gazelle.
To add a new Go dependency
- Run
go get
to add the dependency togo.mod
. E.g.This should updatego get github.com/envoyproxy/[email protected]
go.mod
andgo.sum
. - Run Gazelle to import the dependencies to Bazel.
This should update
bazel run //:gazelle-update-repos
go_deps.bzl
.