summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Justin Yun <justinyun@google.com> 2021-05-27 21:27:52 +0900
committer Justin Yun <justinyun@google.com> 2021-05-27 21:27:52 +0900
commit9e13187f6b733f689f9552aa3ca8eb329140f427 (patch)
treeeafa609d6ecfb073f27cfff669fa20d50f6fe54a
parent69e72316779ec2c9ed1ae305c90a419ba57b8439 (diff)
Fix ExcludeFromVendorSnapshot check
ExcludeFromVendorSnapshot() must return true if the module must not be snapshotted and built from the vendor source tree. The default value must be false because rust modules are provided by the system source tree. Bug: 184042776 Bug: 189372652 Test: m nothing Change-Id: I267c3a5674bea966d1dd831cda73538ae94cf25f
-rw-r--r--rust/snapshot_utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/snapshot_utils.go b/rust/snapshot_utils.go
index e0ed1f711..943c79098 100644
--- a/rust/snapshot_utils.go
+++ b/rust/snapshot_utils.go
@@ -20,12 +20,12 @@ import (
func (mod *Module) ExcludeFromVendorSnapshot() bool {
// TODO Rust does not yet support snapshotting
- return true
+ return false
}
func (mod *Module) ExcludeFromRecoverySnapshot() bool {
// TODO Rust does not yet support snapshotting
- return true
+ return false
}
func (mod *Module) IsSnapshotLibrary() bool {