fly: add reference to documentation on invalid identifier warnings
concourse/concourse#5810
@@ -35,11 +35,18 @@ func ShowWarnings(warnings []concourse.ConfigWarning) {
fmt.Fprintln(ui.Stderr, "")
PrintDeprecationWarningHeader()
+ warningTypes := make(map[string]bool)
for _, warning := range warnings {
+ warningTypes[warning.Type] = true
fmt.Fprintf(ui.Stderr, " - %s\n", warning.Message)
}
fmt.Fprintln(ui.Stderr, "")
+
+ if warningTypes["invalid_identifier"] {
+ fmt.Fprintln(ui.Stderr, "identifier schema documentation: https://concourse-ci.org/config-basics.html#schema.identifier")
+ fmt.Fprintln(ui.Stderr, "")
+ }
}
func Failf(message string, args ...interface{}) {
