chore(stcrashreceiver): the "internal" directory exists

Closes #10729

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-07-01 17:43:26 +02:00
parent 466d30bd70
commit 35576881ff
@@ -66,7 +66,7 @@ func (l *githubSourceCodeLoader) Load(filename string, line, context int) ([][]b
metricSourceCodeCacheSize.Set(float64(l.cache.Len()))
}()
knownPrefixes := []string{"/lib/", "/cmd/"}
knownPrefixes := []string{"/internal/", "/lib/", "/cmd/"}
var idx int
for _, pref := range knownPrefixes {
idx = strings.Index(filename, pref)