Loading ui/build/config.go +6 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ const ( var ( rbeRandPrefix int googleProdCredsExistCache bool ) func init() { Loading Loading @@ -1347,9 +1348,13 @@ func (c *configImpl) IsGooglerEnvironment() bool { // GoogleProdCredsExist determine whether credentials exist on the // Googler machine to use remote execution. func (c *configImpl) GoogleProdCredsExist() bool { if googleProdCredsExistCache { return googleProdCredsExistCache } if _, err := exec.Command("/usr/bin/prodcertstatus", "--simple_output", "--nocheck_loas").Output(); err != nil { return false } googleProdCredsExistCache = true return true } Loading Loading
ui/build/config.go +6 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ const ( var ( rbeRandPrefix int googleProdCredsExistCache bool ) func init() { Loading Loading @@ -1347,9 +1348,13 @@ func (c *configImpl) IsGooglerEnvironment() bool { // GoogleProdCredsExist determine whether credentials exist on the // Googler machine to use remote execution. func (c *configImpl) GoogleProdCredsExist() bool { if googleProdCredsExistCache { return googleProdCredsExistCache } if _, err := exec.Command("/usr/bin/prodcertstatus", "--simple_output", "--nocheck_loas").Output(); err != nil { return false } googleProdCredsExistCache = true return true } Loading