Skip to content

Commit

Permalink
fix: fix sdk mode error
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed Jan 22, 2025
1 parent 1fa6f2b commit 3c19f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/cmd/kitex/sdk/kitex_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func GetKiteXSDKPlugin(pwd string, rawKiteXArgs []string) (*KiteXSDKPlugin, erro
if i == 0 {
continue
}
if arg == "-p" {
if arg == "-p" && i+1 < len(cmd.Args) && strings.HasPrefix(cmd.Args[i+1], "kitex") {
findKitex = true
continue
}
Expand Down

0 comments on commit 3c19f36

Please sign in to comment.