cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.04k stars 491 forks source link

fix(hz): pb model_dir corner case #1147

Closed FGYFFFF closed 1 month ago

FGYFFFF commented 1 month ago

What type of PR is this?

fix

Check the PR title.

(Optional) Translate the PR title into Chinese.

修复 pb 场景下,指定 "model_dir=."时,导致的 import 路径有问题

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

en: fix a problem in the pb scenario when specifying "model_dir=." that cause a problem with the import path zh(optional): 修复 pb 场景下,指定 "model_dir=."时,导致的 import 路径有问题

import (
       _ "a/b/c//api"
)

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

(Optional) The PR that updates user documentation: