commit | 5a3c71c1aa83e7258ff11ceb8249052003fdbd47 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Mon Nov 27 17:51:58 2023 +0000 |
committer | Matthew Maurer <mmaurer@google.com> | Mon Nov 27 17:54:03 2023 +0000 |
tree | f5f1a102c94793bbc824e130fc7aad44ead349c6 | |
parent | db72f7ed803df370951f7a03bd6f6fcad1b357e2 [diff] [blame] |
rust: rust-project.json: Skip disabled modules Disabled modules may not have a valid root path. Bug: 313410568 Test: SOONG_GEN_RUST_PROJECT=1 m nothing Change-Id: I253cca18493193245aa198adfce5fd75cf27cefb
diff --git a/rust/project_json.go b/rust/project_json.go index 83c16ca..ad9b690 100644 --- a/rust/project_json.go +++ b/rust/project_json.go
@@ -119,6 +119,9 @@ if !ok { return nil, false } + if !rModule.Enabled() { + return nil, false + } return rModule, true }