We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fd766 commit 5b52022Copy full SHA for 5b52022
pkg/util/caller/resolver.go
@@ -72,7 +72,8 @@ var defaultRE = func() *regexp.Regexp {
72
// creates packages inside of a "src" directory within their GOPATH.
73
return regexp.MustCompile(".*" + qSep + "src" + pkgStrip)
74
}
75
- if !strings.HasSuffix(root, sep+"src") && !strings.HasSuffix(root, sep+"vendor") {
+ if !strings.HasSuffix(root, sep+"src") && !strings.HasSuffix(root, sep+"vendor") &&
76
+ !strings.HasSuffix(root, sep+"pkg/mod") {
77
panic("unable to find base path for default call resolver, got " + root)
78
79
return regexp.MustCompile(regexp.QuoteMeta(root) + pkgStrip)
0 commit comments