mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
In a recent incident it was bought up that hot fixing searcher had a risk since it speaks to the DB. I investigated and noticed it doesn't actually connect, but does have dbconn as an unused transitive dep. This commit refactors out the bit of logic used by searcher into a pure package. To do so I did a few renames, but functionally there is no change in logic other than the searcher binary shedding some heavy dependencies. Additionally I updated the go-dbconn-import check to ensure searcher isn't accidently using the database again. Test Plan: CI |
||
|---|---|---|
| .. | ||
| all.sh | ||
| bash-syntax.sh | ||
| broken-urls.bash | ||
| build.sh | ||
| docsite_redirects.sh | ||
| go-dbconn-import.sh | ||
| gofmt.sh | ||
| no-localhost-guard.sh | ||
| pnpm-deduplicate.sh | ||
| shellcheck.sh | ||
| shfmt.sh | ||
| submodule.sh | ||
| template-inlines.sh | ||