diff options
author | 2021-04-26 15:47:28 -0400 | |
---|---|---|
committer | 2021-04-27 15:53:51 -0400 | |
commit | 2b50ce669ce41c81839cabab3f6d109ea4c6f16b (patch) | |
tree | 4dec91f7014222e8f8ce91d8e9b62deaaac46a14 /java/sdk.go | |
parent | c86058876314c04ed0d8e7cdff7e3b9319611997 (diff) |
Make GetDirectDep implementation match comment
The comment on the interface of GetDirectDep states if there are
multiple deps with different tags, the first will be returned; however,
the current behavior is to panic if there are multiple deps. The
behavior now:
* a single dep, return the module and tag
* a single module with different tags: return module with first tag
* multiple modules: panic
* no module: return nil, nil
Bug: 186488405
Test: ~/aosp/build/bazel/ci/bp2build.sh
Test: m nothing
Change-Id: Id1e7315e7874b4a683ad7357ed2793822315821f
Diffstat (limited to 'java/sdk.go')
0 files changed, 0 insertions, 0 deletions