You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last error gets reported twice though due to named returns, and I was thinking it would be really nice to still write out the files so that the user can inspect the problem in context.
thoughts?
The text was updated successfully, but these errors were encountered:
bhenderson
changed the title
gnostic-go-generator: -out doesn't like non package names
gnostic-go-generator: -output doesn't like non package names
Feb 8, 2019
I wanted to be able to run -output . or -output /path/to/dir
Using format.Source was the easiest way I could figure out how to
validate the package name.
Relates to google#111
I know the docs say that -out is also the package name, but the error message is confusing. when I do something like
-output=/tmp/bookstore
I getI think it would be nice to have a friendlier error.
I've traced this to goimports errors. related to #110
https://github.com/googleapis/gnostic/blob/d55a06a32dc7468c645ac01d93d37d4dd47ca062/plugins/gnostic-go-generator/renderer.go#L63
I made some changes like
The last error gets reported twice though due to named returns, and I was thinking it would be really nice to still write out the files so that the user can inspect the problem in context.
thoughts?
The text was updated successfully, but these errors were encountered: