···11on:
22 push:
33 branches:
44- - master
44+ - main
55 pull_request:
66name: CI
77jobs:
···4040 # We build a shared docker image called "zoekt". This is not pushed, but is
4141 # used for creating the indexserver and webserver images.
4242 docker:
4343- if: github.ref == 'refs/heads/master'
4343+ if: github.ref == 'refs/heads/main'
4444 runs-on: ubuntu-latest
4545 needs:
4646 - "test"
···8899**Note:** This is a [Sourcegraph](https://github.com/sourcegraph/zoekt) fork
1010of [github.com/google/zoekt](https://github.com/google/zoekt). It is now the
1111-main maintained source of Zoekt. The go module is still
1212-`github.com/google/zoekt` for now, but will be updated in the future.
1111+main maintained source of Zoekt.
13121413# INSTRUCTIONS
15141615## Downloading
17161818- go get github.com/google/zoekt/
1717+ go get github.com/sourcegraph/zoekt/
19182019## Indexing
21202221### Directory
23222424- go install github.com/google/zoekt/cmd/zoekt-index
2323+ go install github.com/sourcegraph/zoekt/cmd/zoekt-index
2524 $GOPATH/bin/zoekt-index .
26252726### Git repository
28272929- go install github.com/google/zoekt/cmd/zoekt-git-index
2828+ go install github.com/sourcegraph/zoekt/cmd/zoekt-git-index
3029 $GOPATH/bin/zoekt-git-index -branches master,stable-1.4 -prefix origin/ .
31303231### Repo repositories
33323434- go install github.com/google/zoekt/cmd/zoekt-{repo-index,mirror-gitiles}
3333+ go install github.com/sourcegraph/zoekt/cmd/zoekt-{repo-index,mirror-gitiles}
3534 zoekt-mirror-gitiles -dest ~/repos/ https://gfiber.googlesource.com
3635 zoekt-repo-index \
3736 -name gfiber \
···45444645### Web interface
47464848- go install github.com/google/zoekt/cmd/zoekt-webserver
4747+ go install github.com/sourcegraph/zoekt/cmd/zoekt-webserver
4948 $GOPATH/bin/zoekt-webserver -listen :6070
50495150### JSON API
···62616362### CLI
64636565- go install github.com/google/zoekt/cmd/zoekt
6464+ go install github.com/sourcegraph/zoekt/cmd/zoekt
6665 $GOPATH/bin/zoekt 'ngram f:READ'
67666867## Installation
···84838584Zoekt comes with a small service management program:
86858787- go install github.com/google/zoekt/cmd/zoekt-indexserver
8686+ go install github.com/sourcegraph/zoekt/cmd/zoekt-indexserver
88878988 cat << EOF > config.json
9089 [{"GithubUser": "username"},
+2-2
all.bash
···11#!/bin/sh
22set -eux
33-go test github.com/google/zoekt/...
44-go install github.com/google/zoekt/cmd/...
33+go test github.com/sourcegraph/zoekt/...
44+go install github.com/sourcegraph/zoekt/cmd/...
+2-2
api.go
···1212// See the License for the specific language governing permissions and
1313// limitations under the License.
14141515-package zoekt // import "github.com/google/zoekt"
1515+package zoekt // import "github.com/sourcegraph/zoekt"
16161717import (
1818 "context"
···2323 "strconv"
2424 "time"
25252626- "github.com/google/zoekt/query"
2626+ "github.com/sourcegraph/zoekt/query"
2727)
28282929// FileMatch contains all the matches within a file.
+1-1
api_test.go
···1212// See the License for the specific language governing permissions and
1313// limitations under the License.
14141515-package zoekt // import "github.com/google/zoekt"
1515+package zoekt // import "github.com/sourcegraph/zoekt"
16161717import (
1818 "bytes"
+1-1
bloom.go
···3030// * a 1% FPR is near the optimal bits-per-precision tradeoff, with 2.5% FPR
3131// only reducing bloom filter sizes by 25%.
32323333-package zoekt // import "github.com/google/zoekt"
3333+package zoekt // import "github.com/sourcegraph/zoekt"
34343535import (
3636 "bytes"
+1-1
bloom_test.go
···1212// See the License for the specific language governing permissions and
1313// limitations under the License.
14141515-package zoekt // import "github.com/google/zoekt"
1515+package zoekt // import "github.com/sourcegraph/zoekt"
16161717import (
1818 "bytes"
···77 "path/filepath"
88 "syscall"
991010- "github.com/google/zoekt"
1111- "github.com/google/zoekt/build"
1010+ "github.com/sourcegraph/zoekt"
1111+ "github.com/sourcegraph/zoekt/build"
1212)
13131414// mergeMeta updates the .meta files for the shards on disk for o.
···2424 retryablehttp "github.com/hashicorp/go-retryablehttp"
2525 "golang.org/x/net/trace"
26262727- "github.com/google/zoekt"
2727+ "github.com/sourcegraph/zoekt"
2828)
29293030// SourcegraphListResult is the return value of Sourcegraph.List. It is its
···2222 "math/bits"
2323 "unicode/utf8"
24242525- "github.com/google/zoekt/query"
2525+ "github.com/sourcegraph/zoekt/query"
2626)
27272828// indexData holds the pattern-independent data that we have to have
···44 "context"
55 "time"
6677- "github.com/google/zoekt"
88- "github.com/google/zoekt/query"
77+ "github.com/sourcegraph/zoekt"
88+ "github.com/sourcegraph/zoekt/query"
99)
10101111// defaultTimeout is the maximum amount of time a search request should
···368368369369 <div class="container">
370370 <p>
371371- This is <a href="http://github.com/google/zoekt"><em>zoekt</em> (IPA: /zukt/)</a>,
371371+ This is <a href="http://github.com/sourcegraph/zoekt"><em>zoekt</em> (IPA: /zukt/)</a>,
372372 an open-source full text search engine. It's pronounced roughly as you would
373373 pronounce "zooked" in English.
374374 </p>