Merge "Add a warning message about missing gcert at the end of the build"
This commit is contained in:
@@ -1223,6 +1223,21 @@ func (c *configImpl) rbeAuth() (string, string) {
|
||||
return "RBE_use_application_default_credentials", "true"
|
||||
}
|
||||
|
||||
func (c *configImpl) IsGooglerEnvironment() bool {
|
||||
cf := "ANDROID_BUILD_ENVIRONMENT_CONFIG"
|
||||
if v, ok := c.environ.Get(cf); ok {
|
||||
return v == "googler"
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *configImpl) GoogleProdCredsExist() bool {
|
||||
if _, err := exec.Command("/usr/bin/prodcertstatus", "--simple_output", "--nocheck_loas").Output(); err != nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (c *configImpl) UseRemoteBuild() bool {
|
||||
return c.UseGoma() || c.UseRBE()
|
||||
}
|
||||
|
Reference in New Issue
Block a user