diff --git a/render.go b/render.go index a76c942c..f3310ea5 100644 --- a/render.go +++ b/render.go @@ -204,6 +204,10 @@ func (m *Message) EchoDownload(arg ...string) *Message { func (m *Message) Display(file string, arg ...Any) { if file == "" { file = strings.TrimPrefix(kit.FileLine(2, 100), Info.Make.Path) + file = strings.TrimPrefix(file, kit.Path("")+PS) + if strings.Contains(file, "/pkg/mod/") { + file = strings.Split(file, "/pkg/mod/")[1] + } } if !strings.HasPrefix(file, PS) && !strings.HasPrefix(file, HTTP) { file = "/require/" + file