mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
d4a5e4df44
commit
5891f4f621
1
info.go
1
info.go
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user