RELEASE_ACONFIG_VALUE_SETS is a reserved flag

Disallow setting the flag via protobuf files, and adjust it internally
to be more like any other build flag.  This makes the generated output
more consistent.

Also default to TARGET_RELEASE if no release is given to `build-flag`.

Bug: 328495189
Test: manual
Change-Id: I9db57137fc4e5ed42a38adc939c430826afe4f63
This commit is contained in:
LaMont Jones
2024-04-30 16:53:09 -07:00
parent 15902f2f4c
commit 6ff1ed4a92
3 changed files with 57 additions and 32 deletions

View File

@@ -325,7 +325,12 @@ func main() {
}
if len(commonFlags.targetReleases) == 0 {
commonFlags.targetReleases = rc_lib.StringList{"trunk_staging"}
release, ok := os.LookupEnv("TARGET_RELEASE")
if ok {
commonFlags.targetReleases = rc_lib.StringList{release}
} else {
commonFlags.targetReleases = rc_lib.StringList{"trunk_staging"}
}
}
if err = os.Chdir(commonFlags.top); err != nil {