-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code search results repeated for monorepos #119
Comments
Unfortunately, we have no good way to handle monorepos. The code search relies upon an index built from on-disk files, so we literally clone the repo pointed to by every addon http://codeallday.com/blog/how-ember-observer-searches-addon-source-code/ Monorepos also have incorrect stats for stats from GitHub such as issues and latest commit date. |
Seems like a reasonably self-contained issue for a motivated new contributor: after cloning, go find the package.json that has the right name in it, and use that as the root directory for the code indexing. Most of the time you'll find the right package.json immediately at the root, but in a monorepo you'll search around a bit until you find it. |
It's a little more complicated than that: It would require a bit of an architecture change for the code search feature. We clone all the addons into a directory and remove any files we don't want to index (no option for excludes for
To do this without that feature of |
Ah, I see. Indexing runs all at once across all addons. So this would require changes to how the indexing process itself maps files to packages. |
This search matches two addons that appear in the cardstack monorepo. But the results are repeated once for every other package in the monorepo, which spams the search results.
The text was updated successfully, but these errors were encountered: