fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

all: rename module to github.com/sourcegraph/zoekt

We are a hard enough for now that we might as well have our own module
name. This will also make it possible to more directly use go tooling.

+167 -172
+2 -2
.github/workflows/ci.yml
··· 1 1 on: 2 2 push: 3 3 branches: 4 - - master 4 + - main 5 5 pull_request: 6 6 name: CI 7 7 jobs: ··· 40 40 # We build a shared docker image called "zoekt". This is not pushed, but is 41 41 # used for creating the indexserver and webserver images. 42 42 docker: 43 - if: github.ref == 'refs/heads/master' 43 + if: github.ref == 'refs/heads/main' 44 44 runs-on: ubuntu-latest 45 45 needs: 46 46 - "test"
+2 -2
.github/workflows/pr.yml
··· 2 2 on: 3 3 push: 4 4 branches: 5 - - master 5 + - main 6 6 7 7 workflow_dispatch: 8 8 branches: 9 - - master 9 + - main 10 10 11 11 jobs: 12 12 sync-zoekt:
-4
.travis.yml
··· 1 - language: go 2 - go: 3 - - "1.x" 4 - go_import_path: github.com/google/zoekt
+2 -2
Dockerfile
··· 3 3 RUN apk add --no-cache ca-certificates 4 4 5 5 ENV CGO_ENABLED=0 GO111MODULE=on 6 - WORKDIR /go/src/github.com/google/zoekt 6 + WORKDIR /go/src/github.com/sourcegraph/zoekt 7 7 8 8 # Cache dependencies 9 9 COPY go.mod go.sum ./ ··· 11 11 12 12 COPY . ./ 13 13 ARG VERSION 14 - RUN go install -ldflags "-X github.com/google/zoekt.Version=$VERSION" ./cmd/... 14 + RUN go install -ldflags "-X github.com/sourcegraph/zoekt.Version=$VERSION" ./cmd/... 15 15 16 16 FROM alpine:3.15.4 AS zoekt 17 17
+8 -9
README.md
··· 8 8 9 9 **Note:** This is a [Sourcegraph](https://github.com/sourcegraph/zoekt) fork 10 10 of [github.com/google/zoekt](https://github.com/google/zoekt). It is now the 11 - main maintained source of Zoekt. The go module is still 12 - `github.com/google/zoekt` for now, but will be updated in the future. 11 + main maintained source of Zoekt. 13 12 14 13 # INSTRUCTIONS 15 14 16 15 ## Downloading 17 16 18 - go get github.com/google/zoekt/ 17 + go get github.com/sourcegraph/zoekt/ 19 18 20 19 ## Indexing 21 20 22 21 ### Directory 23 22 24 - go install github.com/google/zoekt/cmd/zoekt-index 23 + go install github.com/sourcegraph/zoekt/cmd/zoekt-index 25 24 $GOPATH/bin/zoekt-index . 26 25 27 26 ### Git repository 28 27 29 - go install github.com/google/zoekt/cmd/zoekt-git-index 28 + go install github.com/sourcegraph/zoekt/cmd/zoekt-git-index 30 29 $GOPATH/bin/zoekt-git-index -branches master,stable-1.4 -prefix origin/ . 31 30 32 31 ### Repo repositories 33 32 34 - go install github.com/google/zoekt/cmd/zoekt-{repo-index,mirror-gitiles} 33 + go install github.com/sourcegraph/zoekt/cmd/zoekt-{repo-index,mirror-gitiles} 35 34 zoekt-mirror-gitiles -dest ~/repos/ https://gfiber.googlesource.com 36 35 zoekt-repo-index \ 37 36 -name gfiber \ ··· 45 44 46 45 ### Web interface 47 46 48 - go install github.com/google/zoekt/cmd/zoekt-webserver 47 + go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver 49 48 $GOPATH/bin/zoekt-webserver -listen :6070 50 49 51 50 ### JSON API ··· 62 61 63 62 ### CLI 64 63 65 - go install github.com/google/zoekt/cmd/zoekt 64 + go install github.com/sourcegraph/zoekt/cmd/zoekt 66 65 $GOPATH/bin/zoekt 'ngram f:READ' 67 66 68 67 ## Installation ··· 84 83 85 84 Zoekt comes with a small service management program: 86 85 87 - go install github.com/google/zoekt/cmd/zoekt-indexserver 86 + go install github.com/sourcegraph/zoekt/cmd/zoekt-indexserver 88 87 89 88 cat << EOF > config.json 90 89 [{"GithubUser": "username"},
+2 -2
all.bash
··· 1 1 #!/bin/sh 2 2 set -eux 3 - go test github.com/google/zoekt/... 4 - go install github.com/google/zoekt/cmd/... 3 + go test github.com/sourcegraph/zoekt/... 4 + go install github.com/sourcegraph/zoekt/cmd/...
+2 -2
api.go
··· 12 12 // See the License for the specific language governing permissions and 13 13 // limitations under the License. 14 14 15 - package zoekt // import "github.com/google/zoekt" 15 + package zoekt // import "github.com/sourcegraph/zoekt" 16 16 17 17 import ( 18 18 "context" ··· 23 23 "strconv" 24 24 "time" 25 25 26 - "github.com/google/zoekt/query" 26 + "github.com/sourcegraph/zoekt/query" 27 27 ) 28 28 29 29 // FileMatch contains all the matches within a file.
+1 -1
api_test.go
··· 12 12 // See the License for the specific language governing permissions and 13 13 // limitations under the License. 14 14 15 - package zoekt // import "github.com/google/zoekt" 15 + package zoekt // import "github.com/sourcegraph/zoekt" 16 16 17 17 import ( 18 18 "bytes"
+1 -1
bloom.go
··· 30 30 // * a 1% FPR is near the optimal bits-per-precision tradeoff, with 2.5% FPR 31 31 // only reducing bloom filter sizes by 25%. 32 32 33 - package zoekt // import "github.com/google/zoekt" 33 + package zoekt // import "github.com/sourcegraph/zoekt" 34 34 35 35 import ( 36 36 "bytes"
+1 -1
bloom_test.go
··· 12 12 // See the License for the specific language governing permissions and 13 13 // limitations under the License. 14 14 15 - package zoekt // import "github.com/google/zoekt" 15 + package zoekt // import "github.com/sourcegraph/zoekt" 16 16 17 17 import ( 18 18 "bytes"
+2 -2
build/builder.go
··· 38 38 "time" 39 39 40 40 "github.com/bmatcuk/doublestar" 41 - "github.com/google/zoekt" 42 - "github.com/google/zoekt/ctags" 41 + "github.com/sourcegraph/zoekt" 42 + "github.com/sourcegraph/zoekt/ctags" 43 43 "github.com/grafana/regexp" 44 44 "github.com/rs/xid" 45 45 "gopkg.in/natefinch/lumberjack.v2"
+1 -1
build/builder_test.go
··· 14 14 15 15 "github.com/google/go-cmp/cmp" 16 16 "github.com/google/go-cmp/cmp/cmpopts" 17 - "github.com/google/zoekt" 17 + "github.com/sourcegraph/zoekt" 18 18 ) 19 19 20 20 var update = flag.Bool("update", false, "update golden file")
+2 -2
build/ctags.go
··· 22 22 "path/filepath" 23 23 "time" 24 24 25 - "github.com/google/zoekt" 26 - "github.com/google/zoekt/ctags" 25 + "github.com/sourcegraph/zoekt" 26 + "github.com/sourcegraph/zoekt/ctags" 27 27 ) 28 28 29 29 func runCTags(bin string, inputs map[string][]byte) ([]*ctags.Entry, error) {
+2 -2
build/ctags_test.go
··· 18 18 "reflect" 19 19 "testing" 20 20 21 - "github.com/google/zoekt" 22 - "github.com/google/zoekt/ctags" 21 + "github.com/sourcegraph/zoekt" 22 + "github.com/sourcegraph/zoekt/ctags" 23 23 ) 24 24 25 25 func TestTagsToSections(t *testing.T) {
+3 -3
build/e2e_test.go
··· 33 33 "github.com/google/go-cmp/cmp/cmpopts" 34 34 "github.com/grafana/regexp" 35 35 36 - "github.com/google/zoekt" 37 - "github.com/google/zoekt/query" 38 - "github.com/google/zoekt/shards" 36 + "github.com/sourcegraph/zoekt" 37 + "github.com/sourcegraph/zoekt/query" 38 + "github.com/sourcegraph/zoekt/shards" 39 39 ) 40 40 41 41 func TestBasic(t *testing.T) {
+2 -2
cmd/flags.go
··· 20 20 "os" 21 21 "path/filepath" 22 22 23 - "github.com/google/zoekt" 24 - "github.com/google/zoekt/build" 23 + "github.com/sourcegraph/zoekt" 24 + "github.com/sourcegraph/zoekt/build" 25 25 ) 26 26 27 27 var (
+4 -4
cmd/zoekt-archive-index/e2e_test.go
··· 14 14 "strings" 15 15 "testing" 16 16 17 - "github.com/google/zoekt" 18 - "github.com/google/zoekt/build" 19 - "github.com/google/zoekt/query" 20 - "github.com/google/zoekt/shards" 17 + "github.com/sourcegraph/zoekt" 18 + "github.com/sourcegraph/zoekt/build" 19 + "github.com/sourcegraph/zoekt/query" 20 + "github.com/sourcegraph/zoekt/shards" 21 21 ) 22 22 23 23 func TestMain(m *testing.M) {
+3 -3
cmd/zoekt-archive-index/main.go
··· 16 16 "net/url" 17 17 "strings" 18 18 19 - "github.com/google/zoekt" 20 - "github.com/google/zoekt/build" 21 - "github.com/google/zoekt/cmd" 19 + "github.com/sourcegraph/zoekt" 20 + "github.com/sourcegraph/zoekt/build" 21 + "github.com/sourcegraph/zoekt/cmd" 22 22 "go.uber.org/automaxprocs/maxprocs" 23 23 ) 24 24
+1 -1
cmd/zoekt-git-clone/main.go
··· 27 27 "path/filepath" 28 28 "strings" 29 29 30 - "github.com/google/zoekt/gitindex" 30 + "github.com/sourcegraph/zoekt/gitindex" 31 31 ) 32 32 33 33 func main() {
+2 -2
cmd/zoekt-git-index/main.go
··· 21 21 "path/filepath" 22 22 "strings" 23 23 24 - "github.com/google/zoekt/cmd" 25 - "github.com/google/zoekt/gitindex" 24 + "github.com/sourcegraph/zoekt/cmd" 25 + "github.com/sourcegraph/zoekt/gitindex" 26 26 "go.uber.org/automaxprocs/maxprocs" 27 27 ) 28 28
+3 -3
cmd/zoekt-index/main.go
··· 23 23 "runtime/pprof" 24 24 "strings" 25 25 26 - "github.com/google/zoekt" 27 - "github.com/google/zoekt/build" 28 - "github.com/google/zoekt/cmd" 26 + "github.com/sourcegraph/zoekt" 27 + "github.com/sourcegraph/zoekt/build" 28 + "github.com/sourcegraph/zoekt/cmd" 29 29 "go.uber.org/automaxprocs/maxprocs" 30 30 ) 31 31
+2 -2
cmd/zoekt-indexserver/main.go
··· 33 33 "strings" 34 34 "time" 35 35 36 - "github.com/google/zoekt" 37 - "github.com/google/zoekt/gitindex" 36 + "github.com/sourcegraph/zoekt" 37 + "github.com/sourcegraph/zoekt/gitindex" 38 38 ) 39 39 40 40 const day = time.Hour * 24
+1 -1
cmd/zoekt-merge-index/main.go
··· 8 8 "path/filepath" 9 9 "strings" 10 10 11 - "github.com/google/zoekt" 11 + "github.com/sourcegraph/zoekt" 12 12 ) 13 13 14 14 func merge(dstDir string, names []string) error {
+3 -3
cmd/zoekt-merge-index/main_test.go
··· 8 8 "sort" 9 9 "testing" 10 10 11 - "github.com/google/zoekt" 12 - "github.com/google/zoekt/query" 13 - "github.com/google/zoekt/shards" 11 + "github.com/sourcegraph/zoekt" 12 + "github.com/sourcegraph/zoekt/query" 13 + "github.com/sourcegraph/zoekt/shards" 14 14 ) 15 15 16 16 func TestMerge(t *testing.T) {
+1 -1
cmd/zoekt-mirror-bitbucket-server/main.go
··· 30 30 31 31 bitbucketv1 "github.com/gfleury/go-bitbucket-v1" 32 32 33 - "github.com/google/zoekt/gitindex" 33 + "github.com/sourcegraph/zoekt/gitindex" 34 34 ) 35 35 36 36 func main() {
+1 -1
cmd/zoekt-mirror-gerrit/main.go
··· 30 30 "strings" 31 31 32 32 gerrit "github.com/andygrunwald/go-gerrit" 33 - "github.com/google/zoekt/gitindex" 33 + "github.com/sourcegraph/zoekt/gitindex" 34 34 ) 35 35 36 36 type loggingRT struct {
+1 -1
cmd/zoekt-mirror-github/main.go
··· 32 32 "github.com/google/go-github/v27/github" 33 33 "golang.org/x/oauth2" 34 34 35 - "github.com/google/zoekt/gitindex" 35 + "github.com/sourcegraph/zoekt/gitindex" 36 36 ) 37 37 38 38 type topicsFlag []string
+1 -1
cmd/zoekt-mirror-gitiles/main.go
··· 24 24 "os" 25 25 "path/filepath" 26 26 27 - "github.com/google/zoekt/gitindex" 27 + "github.com/sourcegraph/zoekt/gitindex" 28 28 ) 29 29 30 30 type crawlTarget struct {
+1 -1
cmd/zoekt-mirror-gitlab/main.go
··· 33 33 "strconv" 34 34 "strings" 35 35 36 - "github.com/google/zoekt/gitindex" 36 + "github.com/sourcegraph/zoekt/gitindex" 37 37 gitlab "github.com/xanzy/go-gitlab" 38 38 ) 39 39
+4 -4
cmd/zoekt-repo-index/main.go
··· 16 16 git repositories should already have been downloaded to the 17 17 --repo_cache directory, eg. 18 18 19 - go install github.com/google/zoekt/cmd/zoekt-repo-index && 19 + go install github.com/sourcegraph/zoekt/cmd/zoekt-repo-index && 20 20 21 21 zoekt-repo-index -base_url https://gfiber.googlesource.com/ \ 22 22 -manifest_repo_url https://gfiber.googlesource.com/manifests \ ··· 41 41 "strings" 42 42 43 43 "github.com/google/slothfs/manifest" 44 - "github.com/google/zoekt" 45 - "github.com/google/zoekt/build" 46 - "github.com/google/zoekt/gitindex" 44 + "github.com/sourcegraph/zoekt" 45 + "github.com/sourcegraph/zoekt/build" 46 + "github.com/sourcegraph/zoekt/gitindex" 47 47 "go.uber.org/automaxprocs/maxprocs" 48 48 49 49 git "github.com/go-git/go-git/v5"
+1 -1
cmd/zoekt-sourcegraph-indexserver/cleanup.go
··· 15 15 "github.com/prometheus/client_golang/prometheus/promauto" 16 16 "gopkg.in/natefinch/lumberjack.v2" 17 17 18 - "github.com/google/zoekt" 18 + "github.com/sourcegraph/zoekt" 19 19 ) 20 20 21 21 var metricCleanupDuration = promauto.NewHistogram(prometheus.HistogramOpts{
+2 -2
cmd/zoekt-sourcegraph-indexserver/cleanup_test.go
··· 14 14 "github.com/google/go-cmp/cmp" 15 15 "github.com/google/go-cmp/cmp/cmpopts" 16 16 17 - "github.com/google/zoekt" 18 - "github.com/google/zoekt/build" 17 + "github.com/sourcegraph/zoekt" 18 + "github.com/sourcegraph/zoekt/build" 19 19 ) 20 20 21 21 func TestCleanup(t *testing.T) {
+2 -2
cmd/zoekt-sourcegraph-indexserver/index.go
··· 17 17 "strings" 18 18 "time" 19 19 20 - "github.com/google/zoekt" 21 - "github.com/google/zoekt/build" 20 + "github.com/sourcegraph/zoekt" 21 + "github.com/sourcegraph/zoekt/build" 22 22 ) 23 23 24 24 // indexTimeout defines how long the indexserver waits before
+1 -1
cmd/zoekt-sourcegraph-indexserver/index_test.go
··· 15 15 "github.com/google/go-cmp/cmp" 16 16 "github.com/google/go-cmp/cmp/cmpopts" 17 17 18 - "github.com/google/zoekt" 18 + "github.com/sourcegraph/zoekt" 19 19 ) 20 20 21 21 func TestGetIndexOptions(t *testing.T) {
+4 -4
cmd/zoekt-sourcegraph-indexserver/main.go
··· 35 35 "go.uber.org/automaxprocs/maxprocs" 36 36 "golang.org/x/net/trace" 37 37 38 - "github.com/google/zoekt" 39 - "github.com/google/zoekt/build" 40 - "github.com/google/zoekt/debugserver" 41 - "github.com/google/zoekt/internal/profiler" 38 + "github.com/sourcegraph/zoekt" 39 + "github.com/sourcegraph/zoekt/build" 40 + "github.com/sourcegraph/zoekt/debugserver" 41 + "github.com/sourcegraph/zoekt/internal/profiler" 42 42 ) 43 43 44 44 var (
+1 -1
cmd/zoekt-sourcegraph-indexserver/main_test.go
··· 15 15 16 16 "github.com/google/go-cmp/cmp" 17 17 18 - "github.com/google/zoekt" 18 + "github.com/sourcegraph/zoekt" 19 19 ) 20 20 21 21 func TestServer_defaultArgs(t *testing.T) {
+1 -1
cmd/zoekt-sourcegraph-indexserver/merge.go
··· 15 15 "go.uber.org/atomic" 16 16 "gopkg.in/natefinch/lumberjack.v2" 17 17 18 - "github.com/google/zoekt" 18 + "github.com/sourcegraph/zoekt" 19 19 ) 20 20 21 21 var reCompound = regexp.MustCompile(`compound-.*\.zoekt`)
+2 -2
cmd/zoekt-sourcegraph-indexserver/merge_test.go
··· 10 10 "strings" 11 11 "testing" 12 12 13 - "github.com/google/zoekt" 14 - "github.com/google/zoekt/build" 13 + "github.com/sourcegraph/zoekt" 14 + "github.com/sourcegraph/zoekt/build" 15 15 ) 16 16 17 17 func TestHasMultipleShards(t *testing.T) {
+2 -2
cmd/zoekt-sourcegraph-indexserver/meta.go
··· 7 7 "path/filepath" 8 8 "syscall" 9 9 10 - "github.com/google/zoekt" 11 - "github.com/google/zoekt/build" 10 + "github.com/sourcegraph/zoekt" 11 + "github.com/sourcegraph/zoekt/build" 12 12 ) 13 13 14 14 // mergeMeta updates the .meta files for the shards on disk for o.
+2 -2
cmd/zoekt-sourcegraph-indexserver/meta_test.go
··· 6 6 "testing" 7 7 8 8 "github.com/google/go-cmp/cmp" 9 - "github.com/google/zoekt" 10 - "github.com/google/zoekt/build" 9 + "github.com/sourcegraph/zoekt" 10 + "github.com/sourcegraph/zoekt/build" 11 11 ) 12 12 13 13 func TestMergeMeta(t *testing.T) {
+1 -1
cmd/zoekt-sourcegraph-indexserver/queue_test.go
··· 10 10 "testing" 11 11 12 12 "github.com/google/go-cmp/cmp" 13 - "github.com/google/zoekt" 13 + "github.com/sourcegraph/zoekt" 14 14 ) 15 15 16 16 func TestQueue(t *testing.T) {
+1 -1
cmd/zoekt-sourcegraph-indexserver/sg.go
··· 24 24 retryablehttp "github.com/hashicorp/go-retryablehttp" 25 25 "golang.org/x/net/trace" 26 26 27 - "github.com/google/zoekt" 27 + "github.com/sourcegraph/zoekt" 28 28 ) 29 29 30 30 // SourcegraphListResult is the return value of Sourcegraph.List. It is its
+4 -4
cmd/zoekt-test/main.go
··· 31 31 "strings" 32 32 "time" 33 33 34 - "github.com/google/zoekt" 35 - "github.com/google/zoekt/build" 36 - "github.com/google/zoekt/query" 37 - "github.com/google/zoekt/shards" 34 + "github.com/sourcegraph/zoekt" 35 + "github.com/sourcegraph/zoekt/build" 36 + "github.com/sourcegraph/zoekt/query" 37 + "github.com/sourcegraph/zoekt/shards" 38 38 ) 39 39 40 40 func readTree(dir string) (map[string][]byte, error) {
+9 -9
cmd/zoekt-webserver/main.go
··· 33 33 "syscall" 34 34 "time" 35 35 36 - "github.com/google/zoekt" 37 - "github.com/google/zoekt/build" 38 - "github.com/google/zoekt/debugserver" 39 - "github.com/google/zoekt/internal/profiler" 40 - "github.com/google/zoekt/internal/tracer" 41 - "github.com/google/zoekt/query" 42 - "github.com/google/zoekt/shards" 43 - "github.com/google/zoekt/stream" 44 - "github.com/google/zoekt/web" 36 + "github.com/sourcegraph/zoekt" 37 + "github.com/sourcegraph/zoekt/build" 38 + "github.com/sourcegraph/zoekt/debugserver" 39 + "github.com/sourcegraph/zoekt/internal/profiler" 40 + "github.com/sourcegraph/zoekt/internal/tracer" 41 + "github.com/sourcegraph/zoekt/query" 42 + "github.com/sourcegraph/zoekt/shards" 43 + "github.com/sourcegraph/zoekt/stream" 44 + "github.com/sourcegraph/zoekt/web" 45 45 46 46 "github.com/opentracing/opentracing-go" 47 47 "github.com/prometheus/client_golang/prometheus"
+3 -3
cmd/zoekt/main.go
··· 24 24 "runtime/pprof" 25 25 "time" 26 26 27 - "github.com/google/zoekt" 28 - "github.com/google/zoekt/query" 29 - "github.com/google/zoekt/shards" 27 + "github.com/sourcegraph/zoekt" 28 + "github.com/sourcegraph/zoekt/query" 29 + "github.com/sourcegraph/zoekt/shards" 30 30 ) 31 31 32 32 func displayMatches(files []zoekt.FileMatch, pat string, withRepo bool, list bool) {
+1 -1
debugserver/debug.go
··· 11 11 "github.com/prometheus/client_golang/prometheus/promhttp" 12 12 "golang.org/x/net/trace" 13 13 14 - "github.com/google/zoekt" 14 + "github.com/sourcegraph/zoekt" 15 15 ) 16 16 17 17 var registerOnce sync.Once
+1 -1
eval.go
··· 25 25 enry_data "github.com/go-enry/go-enry/v2/data" 26 26 "github.com/grafana/regexp" 27 27 28 - "github.com/google/zoekt/query" 28 + "github.com/sourcegraph/zoekt/query" 29 29 ) 30 30 31 31 const maxUInt16 = 0xffff
+1 -1
eval_test.go
··· 24 24 25 25 "github.com/RoaringBitmap/roaring" 26 26 "github.com/google/go-cmp/cmp" 27 - "github.com/google/zoekt/query" 27 + "github.com/sourcegraph/zoekt/query" 28 28 "github.com/grafana/regexp" 29 29 ) 30 30
+4 -4
gitindex/ignore_test.go
··· 9 9 "reflect" 10 10 "testing" 11 11 12 - "github.com/google/zoekt/query" 12 + "github.com/sourcegraph/zoekt/query" 13 13 14 - "github.com/google/zoekt" 15 - "github.com/google/zoekt/build" 16 - "github.com/google/zoekt/shards" 14 + "github.com/sourcegraph/zoekt" 15 + "github.com/sourcegraph/zoekt/build" 16 + "github.com/sourcegraph/zoekt/shards" 17 17 ) 18 18 19 19 func createSourcegraphignoreRepo(dir string) error {
+3 -3
gitindex/index.go
··· 31 31 "strings" 32 32 "time" 33 33 34 - "github.com/google/zoekt" 35 - "github.com/google/zoekt/build" 36 - "github.com/google/zoekt/ignore" 34 + "github.com/sourcegraph/zoekt" 35 + "github.com/sourcegraph/zoekt/build" 36 + "github.com/sourcegraph/zoekt/ignore" 37 37 38 38 "github.com/go-git/go-git/v5/config" 39 39 "github.com/go-git/go-git/v5/plumbing"
+5 -5
gitindex/index_test.go
··· 28 28 "github.com/go-git/go-git/v5/plumbing" 29 29 "github.com/google/go-cmp/cmp" 30 30 "github.com/google/go-cmp/cmp/cmpopts" 31 - "github.com/google/zoekt" 32 - "github.com/google/zoekt/build" 33 - "github.com/google/zoekt/ignore" 34 - "github.com/google/zoekt/query" 35 - "github.com/google/zoekt/shards" 31 + "github.com/sourcegraph/zoekt" 32 + "github.com/sourcegraph/zoekt/build" 33 + "github.com/sourcegraph/zoekt/ignore" 34 + "github.com/sourcegraph/zoekt/query" 35 + "github.com/sourcegraph/zoekt/shards" 36 36 ) 37 37 38 38 func TestIndexEmptyRepo(t *testing.T) {
+4 -4
gitindex/tree_test.go
··· 28 28 "time" 29 29 30 30 "github.com/google/go-cmp/cmp" 31 - "github.com/google/zoekt" 32 - "github.com/google/zoekt/build" 33 - "github.com/google/zoekt/query" 34 - "github.com/google/zoekt/shards" 31 + "github.com/sourcegraph/zoekt" 32 + "github.com/sourcegraph/zoekt/build" 33 + "github.com/sourcegraph/zoekt/query" 34 + "github.com/sourcegraph/zoekt/shards" 35 35 "github.com/grafana/regexp" 36 36 ) 37 37
+1 -1
go.mod
··· 1 - module github.com/google/zoekt 1 + module github.com/sourcegraph/zoekt 2 2 3 3 require ( 4 4 cloud.google.com/go/profiler v0.2.0
+1 -1
index_test.go
··· 26 26 27 27 "github.com/google/go-cmp/cmp" 28 28 "github.com/google/go-cmp/cmp/cmpopts" 29 - "github.com/google/zoekt/query" 29 + "github.com/sourcegraph/zoekt/query" 30 30 "github.com/grafana/regexp" 31 31 "github.com/kylelemons/godebug/pretty" 32 32 )
+1 -1
indexdata.go
··· 22 22 "math/bits" 23 23 "unicode/utf8" 24 24 25 - "github.com/google/zoekt/query" 25 + "github.com/sourcegraph/zoekt/query" 26 26 ) 27 27 28 28 // indexData holds the pattern-independent data that we have to have
+2 -2
internal/mockSearcher/mock_searcher.go
··· 4 4 "context" 5 5 "fmt" 6 6 7 - "github.com/google/zoekt" 8 - "github.com/google/zoekt/query" 7 + "github.com/sourcegraph/zoekt" 8 + "github.com/sourcegraph/zoekt/query" 9 9 ) 10 10 11 11 type MockSearcher struct {
+1 -1
matchtree.go
··· 20 20 "strings" 21 21 "unicode/utf8" 22 22 23 - "github.com/google/zoekt/query" 23 + "github.com/sourcegraph/zoekt/query" 24 24 "github.com/grafana/regexp" 25 25 ) 26 26
+1 -1
matchtree_test.go
··· 19 19 "testing" 20 20 21 21 "github.com/RoaringBitmap/roaring" 22 - "github.com/google/zoekt/query" 22 + "github.com/sourcegraph/zoekt/query" 23 23 "github.com/grafana/regexp" 24 24 ) 25 25
+1 -1
read_test.go
··· 30 30 "testing" 31 31 32 32 "github.com/google/go-cmp/cmp" 33 - "github.com/google/zoekt/query" 33 + "github.com/sourcegraph/zoekt/query" 34 34 ) 35 35 36 36 var update = flag.Bool("update", false, "update golden files")
+2 -2
rpc/internal/srv/srv.go
··· 4 4 "context" 5 5 "time" 6 6 7 - "github.com/google/zoekt" 8 - "github.com/google/zoekt/query" 7 + "github.com/sourcegraph/zoekt" 8 + "github.com/sourcegraph/zoekt/query" 9 9 ) 10 10 11 11 // defaultTimeout is the maximum amount of time a search request should
+3 -3
rpc/rpc.go
··· 9 9 "sync" 10 10 "time" 11 11 12 - "github.com/google/zoekt" 13 - "github.com/google/zoekt/query" 14 - "github.com/google/zoekt/rpc/internal/srv" 12 + "github.com/sourcegraph/zoekt" 13 + "github.com/sourcegraph/zoekt/query" 14 + "github.com/sourcegraph/zoekt/rpc/internal/srv" 15 15 "github.com/keegancsmith/rpc" 16 16 ) 17 17
+4 -4
rpc/rpc_test.go
··· 7 7 "reflect" 8 8 "testing" 9 9 10 - "github.com/google/zoekt" 11 - "github.com/google/zoekt/internal/mockSearcher" 12 - "github.com/google/zoekt/query" 13 - "github.com/google/zoekt/rpc" 10 + "github.com/sourcegraph/zoekt" 11 + "github.com/sourcegraph/zoekt/internal/mockSearcher" 12 + "github.com/sourcegraph/zoekt/query" 13 + "github.com/sourcegraph/zoekt/rpc" 14 14 ) 15 15 16 16 func TestClientServer(t *testing.T) {
+3 -3
shards/eval.go
··· 3 3 import ( 4 4 "context" 5 5 6 - "github.com/google/zoekt" 7 - "github.com/google/zoekt/query" 8 - "github.com/google/zoekt/trace" 6 + "github.com/sourcegraph/zoekt" 7 + "github.com/sourcegraph/zoekt/query" 8 + "github.com/sourcegraph/zoekt/trace" 9 9 ) 10 10 11 11 // typeRepoSearcher evaluates all type:repo sub-queries before sending the query
+2 -2
shards/eval_test.go
··· 5 5 "fmt" 6 6 "testing" 7 7 8 - "github.com/google/zoekt" 9 - "github.com/google/zoekt/query" 8 + "github.com/sourcegraph/zoekt" 9 + "github.com/sourcegraph/zoekt/query" 10 10 ) 11 11 12 12 func TestSearchTypeRepo(t *testing.T) {
+4 -4
shards/shards.go
··· 30 30 31 31 "golang.org/x/sync/semaphore" 32 32 33 - "github.com/google/zoekt" 34 - "github.com/google/zoekt/query" 35 - "github.com/google/zoekt/stream" 36 - "github.com/google/zoekt/trace" 33 + "github.com/sourcegraph/zoekt" 34 + "github.com/sourcegraph/zoekt/query" 35 + "github.com/sourcegraph/zoekt/stream" 36 + "github.com/sourcegraph/zoekt/trace" 37 37 "github.com/prometheus/client_golang/prometheus" 38 38 "github.com/prometheus/client_golang/prometheus/promauto" 39 39 )
+3 -3
shards/shards_test.go
··· 33 33 "github.com/RoaringBitmap/roaring" 34 34 "github.com/google/go-cmp/cmp" 35 35 "github.com/google/go-cmp/cmp/cmpopts" 36 - "github.com/google/zoekt" 37 - "github.com/google/zoekt/query" 38 - "github.com/google/zoekt/stream" 36 + "github.com/sourcegraph/zoekt" 37 + "github.com/sourcegraph/zoekt/query" 38 + "github.com/sourcegraph/zoekt/stream" 39 39 "github.com/grafana/regexp" 40 40 ) 41 41
+1 -1
shards/watcher.go
··· 26 26 "time" 27 27 28 28 "github.com/fsnotify/fsnotify" 29 - "github.com/google/zoekt" 29 + "github.com/sourcegraph/zoekt" 30 30 ) 31 31 32 32 type shardLoader interface {
+1 -1
shards/watcher_test.go
··· 21 21 "testing" 22 22 "time" 23 23 24 - "github.com/google/zoekt" 24 + "github.com/sourcegraph/zoekt" 25 25 ) 26 26 27 27 type loggingLoader struct {
+2 -2
stream/client.go
··· 7 7 "fmt" 8 8 "net/http" 9 9 10 - "github.com/google/zoekt" 11 - "github.com/google/zoekt/query" 10 + "github.com/sourcegraph/zoekt" 11 + "github.com/sourcegraph/zoekt/query" 12 12 ) 13 13 14 14 // NewClient returns a client which implements StreamSearch. If httpClient is
+3 -3
stream/stream.go
··· 8 8 "net/http" 9 9 "sync" 10 10 11 - "github.com/google/zoekt" 12 - "github.com/google/zoekt/query" 13 - "github.com/google/zoekt/rpc" 11 + "github.com/sourcegraph/zoekt" 12 + "github.com/sourcegraph/zoekt/query" 13 + "github.com/sourcegraph/zoekt/rpc" 14 14 ) 15 15 16 16 // DefaultSSEPath is the path used by zoekt-webserver.
+3 -3
stream/stream_test.go
··· 10 10 "testing" 11 11 12 12 "github.com/google/go-cmp/cmp" 13 - "github.com/google/zoekt" 14 - "github.com/google/zoekt/internal/mockSearcher" 15 - "github.com/google/zoekt/query" 13 + "github.com/sourcegraph/zoekt" 14 + "github.com/sourcegraph/zoekt/internal/mockSearcher" 15 + "github.com/sourcegraph/zoekt/query" 16 16 ) 17 17 18 18 func TestStreamSearch(t *testing.T) {
+1 -1
web/api.go
··· 17 17 import ( 18 18 "time" 19 19 20 - "github.com/google/zoekt" 20 + "github.com/sourcegraph/zoekt" 21 21 ) 22 22 23 23 type ApiSearchResult struct {
+2 -2
web/e2e_test.go
··· 29 29 "time" 30 30 31 31 "github.com/google/go-cmp/cmp" 32 - "github.com/google/zoekt" 33 - "github.com/google/zoekt/query" 32 + "github.com/sourcegraph/zoekt" 33 + "github.com/sourcegraph/zoekt/query" 34 34 ) 35 35 36 36 // TODO(hanwen): cut & paste from ../ . Should create internal test
+4 -4
web/server.go
··· 30 30 "sync" 31 31 "time" 32 32 33 - "github.com/google/zoekt" 34 - "github.com/google/zoekt/query" 35 - "github.com/google/zoekt/rpc" 36 - "github.com/google/zoekt/stream" 33 + "github.com/sourcegraph/zoekt" 34 + "github.com/sourcegraph/zoekt/query" 35 + "github.com/sourcegraph/zoekt/rpc" 36 + "github.com/sourcegraph/zoekt/stream" 37 37 "github.com/grafana/regexp" 38 38 ) 39 39
+1 -1
web/snippets.go
··· 22 22 "strconv" 23 23 "strings" 24 24 25 - "github.com/google/zoekt" 25 + "github.com/sourcegraph/zoekt" 26 26 ) 27 27 28 28 func (s *Server) formatResults(result *zoekt.SearchResult, query string, localPrint bool) ([]*FileMatch, error) {
+1 -1
web/templates.go
··· 368 368 369 369 <div class="container"> 370 370 <p> 371 - This is <a href="http://github.com/google/zoekt"><em>zoekt</em> (IPA: /zukt/)</a>, 371 + This is <a href="http://github.com/sourcegraph/zoekt"><em>zoekt</em> (IPA: /zukt/)</a>, 372 372 an open-source full text search engine. It's pronounced roughly as you would 373 373 pronounce "zooked" in English. 374 374 </p>
+3 -3
web/trace.go
··· 4 4 "context" 5 5 "log" 6 6 7 - "github.com/google/zoekt" 8 - "github.com/google/zoekt/query" 9 - "github.com/google/zoekt/trace" 7 + "github.com/sourcegraph/zoekt" 8 + "github.com/sourcegraph/zoekt/query" 9 + "github.com/sourcegraph/zoekt/trace" 10 10 "github.com/opentracing/opentracing-go" 11 11 ) 12 12