Skip to content

Swag generate empty path #1780

Open
Open

Description

@flyskea

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

Activity

  1. Mrbeyond commented on Apr 19, 2024

    @Mrbeyond

    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

  2. bobsongplus commented on Jun 14, 2024

    @bobsongplus
    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.

  3. added a commit that references this issue on Jun 14, 2024
  4. added a commit that references this issue on Jun 21, 2024
  5. added a commit that references this issue on Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址