-
Notifications
You must be signed in to change notification settings - Fork 28
Formatting and style updates, closes #43 #58
Conversation
This ensures new executions of the deploy_pcf.sh script use the latest code. This is useful when testing new changes.
Mostly capitalizing acronyms, few other changes.
Since I do not have admin on this project, I cannot turn on TravisCI support. (free, just link with travisci.org) TravisCI should be default ensure PRs to master both pass lint checks and unit tests. If anyone has disagreements, let me know your thought. I can always revert the TravisCI commit. |
src/omg-cli/omg/setup/project.go
Outdated
@@ -38,7 +38,7 @@ type QuotaError struct { | |||
Region string | |||
} | |||
|
|||
var UnsatisfiedQuotaErr = errors.New("Compute Engine quota is unsatisfied, request an increase at: https://console.cloud.google.com/iam-admin/quotas") | |||
var ErrUnsatisfiedQuota = errors.New("unsatisfied quota for Compute Engine, request an increase at: https://console.cloud.google.com/iam-admin/quotas") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think Compute Engine should be in this string since the quotas are for project resources--even if they're technically part of the "compute engine" APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Reviewers: All standard I am going to wait till this PR is approved before I make any package renames. Please let me know if package renaming is an issue. (It's very bad for downstream users, but I wouldn't think anyone is consuming this code as a dependency. I'd rather fix this once and never have to worry again) The renames will be:
Let me know if you think the packages should be renamed differently. |
|
||
errsMu.Lock() | ||
errors = append(errors, err) | ||
errsMu.Unlock() | ||
} | ||
wg.Done() | ||
}() | ||
}(s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, this should fix and issue I was running into today (cleanup not deleting the ops-man director, which would then start recreating the just deleted instances).
}, | ||
"light-bosh-stemcell-97.32-google-kvm-ubuntu-xenial-go_agent", | ||
StemcellName: "light-bosh-stemcell-97.32-google-kvm-ubuntu-xenial-go_agent", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be updated in the output of pivnet_meta.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to merge and perform the package renaming in a second PR |
This PR performs code style updates to improve the Go Report Card.
https://goreportcard.com/report/github.com/cf-platform-eng/gcp-pcf-quickstart#golint
Works towards #43
TravisCI is also added, to check tests and run
golint