Open david-christ opened 1 year ago
I also encountered the same situation, the same go version and swag version
@hiPsyDuck I figured out the issue. For me, I have a local $GOPATH
in my project directory. swag init
fails trying to parse it. $ swag init --exclude go/
solves the issue for me.
Is this the same for you?
Still, would be good if swag
could somehow handle the GOPATH being in the project root.
@david-christ We are dropping support for the older versions of go due to various security issues and a lack of support. See https://endoflife.date/go. This means GOPATH will disappear at some point in favor of Go modules.
Describe the bug
Running
swag init
causes an errorTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Initialises directory.
Your swag version
e.g. 1.8.10, although also tried down to 1.6.0
Your go version
e.g. 1.19.2
Desktop (please complete the following information):