From 027bfc68db2547d4d52900d1e3fcbea026e7243d Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Thu, 27 May 2021 21:27:52 +0900 Subject: [PATCH] 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 Merged-In: I267c3a5674bea966d1dd831cda73538ae94cf25f (cherry picked from commit 9e13187f6b733f689f9552aa3ca8eb329140f427) --- rust/snapshot_utils.go | 4 ++-- 1 file 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 {