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

Swag generate empty path #1780

Open
flyskea opened this issue Mar 29, 2024 · 2 comments
Open

Swag generate empty path #1780

flyskea opened this issue Mar 29, 2024 · 2 comments

Comments

@flyskea
Copy link

flyskea commented Mar 29, 2024

Describe the bug
generate empty path, but in v1.8.2, it's ok

To Reproduce
Steps to reproduce the behavior:

  1. run command 'swag init -g ./internal/server/http/apiv1.go -dir ./ --parseInternal'

Screenshots
project tree:
image
handler comment:
image:
image

Your swag version
1.16.3

Your go version
1.21.4

Desktop (please complete the following information):

  • OS: ubuntu
  • Version: 20.04
@Mrbeyond
Copy link

Mrbeyond commented Apr 19, 2024

Same issue here!

Your swag version
1.16.3

Your go version
go version go1.22.2 linux/amd64

Desktop (please complete the following information):

OS: Ubuntu
Version: 23.10

@bobsongplus
Copy link
Contributor

I also have the same issue and make some deep digs. I found that if your code path is in $ROOT or the path prefix is $ROOT, will filter out the source code.

bobsongplus added a commit to bobsongplus/swag that referenced this issue Jun 14, 2024
sdghchj pushed a commit that referenced this issue Jun 21, 2024
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

3 participants