swag icon indicating copy to clipboard operation
swag copied to clipboard

No longer respects --parseDepth when processing dependency tree

Open lrubinow opened this issue 2 years ago • 2 comments

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

lrubinow avatar Jul 19 '22 17:07 lrubinow

Would you mind addressing this issue via a PR?

ubogdan avatar Jul 21 '22 18:07 ubogdan

Any updates for this issue???

ElegantSoft avatar Oct 13 '22 20:10 ElegantSoft