sourcegraph/dev/tools.go

22 lines
631 B
Go
Raw Normal View History

//go:build tools
// +build tools
package main
import (
// zoekt-* used in sourcegraph/server docker image build
_ "github.com/google/zoekt/cmd/zoekt-archive-index"
zoekt: build updates to enable multiple branch indexing (#10549) * gomod: update zoekt Includes the following commits - 9d90c1c gitindex: allocate buffer of correct size - aa0e667 zoekt: verbose flag prints shard metadata - ddddd93 gitindex: do not resolve HEAD ref - 8c0aee7 build: handle nil Options in largeFilesFlag - 36a801c indexserver: use temp directory on same mount as indexes - 070c191 indexserver: align flag defaults with dockerfile - 35dabc7 indexserver: optionally shallow clone and use zoekt-git-index - f89b8e3 indexserver: inline CmdArgs into archiveIndex - ef52f4b indexserver: consistently use a pointer to indexArgs - e407d68 indexserver: store root in indexArgs - 70628e0 indexserver: factor out index logic - 4961ee9 indexserver: add cli flags to debug indexing and listing - 4abd60f indexserver: log success - 605d890 indexserver: metrics track if we skipped indexing - 1a62bb8 indexserver: rename metric vars to have metric prefix - a2233e1 indexserver: check incremental in process - ddccdf9 indexserver: use build.Options to generate flags - 8463ade Do not ignore large files. * zoekt: set cpu_fraction flag for indexserver The default was 0.25, but was bumped to 1.0. This bump was done to align the flag defaults with how we run indexserver in cluster environments. We update our dev and single image environments to use the same value. Those environmemts don't have resource isolation so we need to continue using 0.25 rather than allowing indexing to use all cores. * all: build and include zoekt-git-index If you are indexing multiple branches this command is required. This adds the command to our dev and single docker image environments. The docker images for cluster already include the command (see zoekt repo). * gofmt
2020-05-11 12:08:38 +00:00
_ "github.com/google/zoekt/cmd/zoekt-git-index"
_ "github.com/google/zoekt/cmd/zoekt-sourcegraph-indexserver"
_ "github.com/google/zoekt/cmd/zoekt-webserver"
// go-mockgen is used to codegen mockable interfaces, used in precise code intel tests
_ "github.com/derision-test/go-mockgen/cmd/go-mockgen"
// used in schema pkg
_ "github.com/sourcegraph/go-jsonschema/cmd/go-jsonschema-compiler"
// used in many places
_ "golang.org/x/tools/cmd/stringer"
)