Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
```
runtime: go112
service: service-name
main:
```
(This is within a Go module
Sadly, gcloud seems to prohibit it:
```
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/home/benkraft/khan/webapp/genfiles/go-staging/service-name/service-name.yaml]
Unable to assign value '
Value '
in "/home/benkraft/khan/webapp/genfiles/go-staging/service-name/service-name.yaml", line 3, column 7
```
It's unclear to me why gcloud exposes such a restriction: this is a perfectly valid Go package name. In fact, if I find where the check is happening -- MAIN_RE_STRING on lib/googlecloudsdk/third_party/appengine/api/appinfo.py:180 -- and edit it to allow dashes, the deploy works just fine -- this limitation seems to entirely be an unnecessarily strict client.
It would be great if gcloud allows these names! We'd like to have our services in directories which match their deployed names which use hyphens.