From 9dc2451339cafe5337f52df725169f11321bd29b Mon Sep 17 00:00:00 2001 From: Zhi Dou Date: Mon, 24 Jul 2023 21:19:55 +0000 Subject: [PATCH] Compare generated cache file with existing cache file Bug: b/292128421 Test: Create a aconfig declartion file with only package name but no flags. Then build the corresponding java library. Change-Id: I7e9d09d5488eb9c95784fd486d3a9107539412a4 --- aconfig/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aconfig/init.go b/aconfig/init.go index 7e283ea47..37167aa5d 100644 --- a/aconfig/init.go +++ b/aconfig/init.go @@ -30,7 +30,7 @@ var ( ` ${declarations}` + ` ${values}` + ` --cache ${out}.tmp` + - ` && ( if cmp -s ${out}.tmp ; then rm ${out}.tmp ; else mv ${out}.tmp ${out} ; fi )`, + ` && ( if cmp -s ${out}.tmp ${out} ; then rm ${out}.tmp ; else mv ${out}.tmp ${out} ; fi )`, // ` --build-id ${release_version}` + CommandDeps: []string{ "${aconfig}",