-
Notifications
You must be signed in to change notification settings - Fork 103
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
Move several packages to internal/ #901
Conversation
I also thought about moving |
We do import the gRPC definitions from the monorepo, so this would break some things right now. Personally, I think exporting the generated protos is convenient for building clients consuming the API anyways, so I'd prefer keeping |
Ah good point, I won't touch it. I guess I could pull out some internal helpers like |
"go.uber.org/automaxprocs/maxprocs" | ||
|
||
"github.com/sourcegraph/zoekt/internal/profiler" | ||
|
||
"github.com/sourcegraph/zoekt/cmd" | ||
"github.com/sourcegraph/zoekt/ctags" | ||
"github.com/sourcegraph/zoekt/gitindex" | ||
"github.com/sourcegraph/zoekt/internal/gitindex" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it might be good to configure goimports
or something similar to keep imports tidy :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I hadn't checked "Optimize imports on save" for the zoekt repo.
This PR moves the following packages to
internal
to avoid exposing them in the API:ctags
debugserver
gitindex
shards
trace
I checked public code search engines and saw no external references to these, besides zoekt forks. I did not move these packages:
build
-> used in at least one external dependency rubygems-researchignore
-> used by the sourcegraph repo to ignore files during unindexed searchBackground behind this PR: I became inspired to restructure the repo a bit and update the docs. I have a few more changes queued up.