bazel-gazelle icon indicating copy to clipboard operation
bazel-gazelle copied to clipboard

Bzlmod: (feature request) `go_deps` new tag `overrides_from_file`

Open tyler-french opened this issue 11 months ago • 1 comments

Currently, Uber's MODULE.bazel file has 40+ overrides, and this number will only grow. The proposal is this: allow overrides to be specified in file(s):

e.g:

go_deps.overrides_from_file(
   "//:go_deps_automatic_overrides.json",
   "//:go_deps_manual_overrides.json",
)

Currently, code reviewer ability in our codebase is based on file location. Having different overrides in different locations will allow more automation around pruning/adjusting overrides, while also spreading the responsibilities for review to different users and groups.

tyler-french avatar Sep 07 '23 20:09 tyler-french

We definitely need something like this, but I think the result would be much better if it was a universal mechanism. Could you add a comment on https://github.com/bazelbuild/bazel/issues/17880 to revive the discussion there?

fmeum avatar Sep 08 '23 08:09 fmeum