[8.0.0] Include apparent names of deps in `bazel mod` JSON output (#24234)
This allows IDEs to query for the direct dependencies of the root module as well as how they can refer to them from the point of view of the root module. Also always emit `name` and `version` so that consumers don't have to know how to parse module keys. Work towards #22691 Closes #23787. PiperOrigin-RevId: 693453084 Change-Id: Ie3fd5e89301d8e83d0eaa686188634923853f01a Commit https://github.com/bazelbuild/bazel/commit/1003d2c31bf4f90ded7015b1b7ed570d50ed6a63 Co-authored-by:Fabian Meumertzheim <fabian@meumertzhe.im>
Showing
- src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelModuleInspectorFunction.java 7 additions, 1 deletion.../build/lib/bazel/bzlmod/BazelModuleInspectorFunction.java
- src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelModuleInspectorValue.java 6 additions, 0 deletions...ols/build/lib/bazel/bzlmod/BazelModuleInspectorValue.java
- src/main/java/com/google/devtools/build/lib/bazel/bzlmod/modcommand/JsonOutputFormatter.java 12 additions, 6 deletions...uild/lib/bazel/bzlmod/modcommand/JsonOutputFormatter.java
- src/test/java/com/google/devtools/build/lib/bazel/bzlmod/BzlmodTestUtil.java 5 additions, 1 deletion...oogle/devtools/build/lib/bazel/bzlmod/BzlmodTestUtil.java
Please register or sign in to comment