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

Better Go modules support for swagger document generation #699

Merged
merged 3 commits into from
Aug 1, 2020

Conversation

de1acr0ix
Copy link
Contributor

Command bee generate docs does not support Go modules well. This change utilizes go/build to resolve package paths. It supports whatever go build supports automatically while reducing the code complexity.

This PR also moves swagger related codes from main package to swaggergen package, making main package clearer.

Copy link

@guhan121 guhan121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i try it in GOPATH and GO MOD,it works perfect.

@de1acr0ix cool!

@de1acr0ix
Copy link
Contributor Author

de1acr0ix commented Jul 28, 2020

i try it in GOPATH and GO MOD,it works perfect.

@de1acr0ix cool!

I am glad to contribute back. @guhan121 @askuy @wangle201210 could you help merge the change as well? Thanks!

@askuy askuy merged commit c562ced into beego:develop Aug 1, 2020
@de1acr0ix de1acr0ix deleted the resolve-pkgpath-gobuild branch August 1, 2020 08:41
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

3 participants