daml/sdk/BAZEL-go.md
Gary Verhaegen e40aad897f
move to subdir 3.0 (#18520)
* move most files

* update CI configuration
2024-03-22 02:27:46 +01:00

586 B

Working with Go in Bazel

Dependencies

Go dependencies are managed by go.mod and Gazelle. To add a new Go dependency

  1. Run go get to add the dependency to go.mod. E.g.
    go get github.com/envoyproxy/protoc-gen-validate@v0.6.2
    
    This should update go.mod and go.sum.
  2. Run Gazelle to import the dependencies to Bazel.
    bazel run //:gazelle-update-repos
    
    This should update go_deps.bzl.