1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
jingganjiaoyu 2024-08-15 11:38:51 +08:00
parent d4a5e4df44
commit 5891f4f621

View File

@ -310,6 +310,7 @@ func (m *Message) FileURI(dir string) string {
ppp := strings.Split(Info.Make.Path, USR_LOCAL_WORK)[0]
if strings.Contains(dir, PKG_MOD) {
dir = strings.Split(dir, PKG_MOD)[1]
dir = "/require/" + dir
} else if Info.Make.Path != "" && strings.HasPrefix(dir, Info.Make.Path) {
dir = strings.TrimPrefix(dir, Info.Make.Path)
} else if strings.HasPrefix(dir, p) {