Skip to content

Conversation

@acehinnnqru
Copy link
Collaborator

What type of PR is this?

fix: abcoder would panic when walk to module which has no deps.

For go list -json all, if current module has no deps, it would print something like:

go: warning: "all" matched no packages

which would cause decode json error in lang/golang/parser/parser.go:117, then would cause panic in lang/golang/parser/parser.go:90.

We should handle this situation.

Plus, I use official modfile to parse module name in getModuleName.

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@Duslia Duslia merged commit 05af382 into cloudwego:main Dec 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants