Merge "crunch_flags: handle non-string ACONFIG_VALUE_SETS" into main

This commit is contained in:
LaMont Jones
2024-05-09 22:25:54 +00:00
committed by Gerrit Code Review

View File

@@ -137,7 +137,9 @@ func ProcessBuildFlags(dir string, namespaceMap map[string]string) error {
workflow := rc_proto.Workflow(rc_proto.Workflow_PREBUILT)
switch {
case declName == "RELEASE_ACONFIG_VALUE_SETS":
rootAconfigModule = declValue[1 : len(declValue)-1]
if strings.HasPrefix(declValue, "\"") {
rootAconfigModule = declValue[1 : len(declValue)-1]
}
continue
case strings.HasPrefix(declValue, "\""):
// String values mean that the flag workflow is (most likely) either MANUAL or PREBUILT.