Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made up for missing packages from template #2824

Merged
merged 1 commit into from Sep 5, 2022

Conversation

koron
Copy link
Contributor

@koron koron commented Sep 5, 2022

revised version of #2775

When execute swagger generate support on the environment without Go and its runtime source,
it will be failed with this messages.

2022/05/16 15:47:25 source formatting failed on template-generated source ("restapi\\server.go" for server). Check that your template produces valid code
2022/05/16 15:47:25 unformatted generated source "server.go" has been dumped for template debugging purposes. DO NOT build on this source!
source formatting on generated source "server" failed: err: go command required, not found: exec: "go": executable file not found in %PATH%: stderr:

This came from missing packages to imports in the template of server.go.
(the formatter would requrie Go's source code to complete those packages)

This PR make up for those missing packages.

Signed-off-by: MURAOKA Taro <koron.kaoriya@gmail.com>
@casualjim casualjim merged commit 3577d6d into go-swagger:master Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants