in store/store.go [169:181]
func (s *credStore) createCredentialFile() (*os.File, error) {
// create the gcloud config dir, if it doesnt exist
if err := os.MkdirAll(filepath.Dir(s.credentialPath), 0777); err != nil {
return nil, err
}
// create the credential file, or truncate (clear) it if it exists
f, err := os.Create(s.credentialPath)
os.Chmod(s.credentialPath, 0600)
if err != nil {
return nil, authErr("failed to create credential file", err)
}
return f, nil
}