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

Generated import path ignores capitalization #941

Closed
ntoljic opened this issue Feb 22, 2017 · 2 comments
Closed

Generated import path ignores capitalization #941

ntoljic opened this issue Feb 22, 2017 · 2 comments

Comments

@ntoljic
Copy link

ntoljic commented Feb 22, 2017

Problem statement & Steps to reproduce

When generating a server with swagger generate server -f swagger.json within a directory in $GOPATH, the import paths in the generated files are all lower case even though the path contains a directory with capitalized letters (e.g. /go/src/github.com/FOO/bar).

Is this something go recommend/enforces and therefore desired behavior?

Environment

swagger-codegen: stable 2.2.1
swagger version: 0.8.0
go version: 1.8

@casualjim
Copy link
Member

we use goimports for finding imports and optimizing imports,
https://godoc.org/golang.org/x/tools/cmd/goimports

@ntoljic
Copy link
Author

ntoljic commented Feb 22, 2017

Ok, I might raise it with them if I get around to it. In the meantime I simply renamed our organization name (well, the URL) and the directory in the $GOPATH.

@ntoljic ntoljic closed this as completed Feb 22, 2017
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

No branches or pull requests

2 participants