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

Docker image unable to parseInternal #1700

Open
odannyc opened this issue Nov 7, 2023 · 1 comment
Open

Docker image unable to parseInternal #1700

odannyc opened this issue Nov 7, 2023 · 1 comment

Comments

@odannyc
Copy link

odannyc commented Nov 7, 2023

I have a docker run command with the ghcr image:

docker run --rm --volume .:/src --workdir /src ghcr.io/swaggo/swag:v1.16.2 /root/swag init --parseInternal -g ../docs/api.go -d ./internal

Once I run that command, I get a warning and an error:

2023/11/07 13:58:32 warning: failed to get package name in dir: ./internal, error: execute go list command, exec: "go": executable file not found in $PATH, stdout:, stderr:
2023/11/07 13:58:34 ParseComment error in file /src/internal/platform/handlers/app/users/users_handler.go :cannot find type definition: app.ResponseWrapper[UserResponse]

Looks like internally it uses the go CLI which is stripped by the Dockerfile because it uses the scratch base image.

@ubogdan
Copy link
Contributor

ubogdan commented Nov 16, 2023

@odannyc Swag is an OpenSource project. Any contribution is welcome.

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