swag
swag copied to clipboard
No longer respects --parseDepth when processing dependency tree
Describe the bug Versions 1.8.3 and higher default to using the "go list" package listing and the new parser.getAllGoFileInfoFromDepsByList() function. This newer code does not reference the setting for --parseDepth. While the behavior can be overridden for now by setting --parseGoList=false, causing swag to run the old parser.getAllGoFileInfoFromDeps() function (which uses a depth tree and does respect --parseDepth), it's still misleading and regressive behavior.
Expected behavior If I set a non-default value for --parseDepth, I expect swag to honor it.
Your swag version 1.8.3
Your go version e.g. 1.17.6
Desktop (please complete the following information):
- OS: iOS
- Browser: chrome
- Version: 103.0.5060.114
Would you mind addressing this issue via a PR?
Any updates for this issue???