Skip to content

fix: tryFindGo doesn't trim repo path when absolute path is used#4608

Merged
simonswine merged 1 commit intomainfrom
20251112_prefix-match-tryfindgo
Nov 12, 2025
Merged

fix: tryFindGo doesn't trim repo path when absolute path is used#4608
simonswine merged 1 commit intomainfrom
20251112_prefix-match-tryfindgo

Conversation

@simonswine
Copy link
Contributor

When an absolute path is used like
/home/christian/github.com/grafana/pyroscope/[....], we are not
matching the repository correctly and have to try quite a few files
before we truncated enough folders.

This change ensures that these cases are dealt with similar like a path
starting with the repo name.

When an absolute path is used like
`/home/christian/github.com/grafana/pyroscope/[....]`, we are not
matching the repository correctly and have to try quite a few files
before we truncated enough folders.

This change ensures that these cases are dealt with similar like a path
starting with the repo name.
@simonswine simonswine merged commit cc926a7 into main Nov 12, 2025
21 checks passed
@simonswine simonswine deleted the 20251112_prefix-match-tryfindgo branch November 12, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants