Code AI platform with Code Search & Cody
Go to file
Keegan Carruthers-Smith 9bc13b83d6
sg: correctly download jaeger (#26984)
Currently jaeger just doesn't start in our dev environment since it
used "version" as an envvar. Additionally, we didn't notice this was
broken since "-e" bash option was not set. This is now set. We
should consider it for all shell commands in sg.

The log level is also lowered for Jaeger, since it is quiet spammy.
2021-11-03 12:15:18 +02:00
.buildkite ci: add pipeline.yml (#26864) 2021-11-01 12:11:05 +04:00
.github Update handbook links in doc (#26848) 2021-11-02 00:09:49 +08:00
.vscode adding launch.json debugger config (#26691) 2021-11-01 15:46:40 -07:00
client Remove acceptSearchSuggestionOnEnter experimental feature (#26928) 2021-11-03 09:20:24 +01:00
cmd refactor gitserver search errors and instrumentation (#26888) 2021-11-02 22:27:50 -06:00
dev ci: ignore soft failures when uploading logs (#26964) 2021-11-02 21:01:45 +01:00
doc executors: add node_exporter dashboards for executor and docker mirror nodes (#26916) 2021-11-02 20:10:49 +00:00
docker-images Update handbook links in doc (#26848) 2021-11-02 00:09:49 +08:00
enterprise authz: Add a basic SubRepoPerms client (#26842) 2021-11-03 10:55:15 +01:00
hacktoberfest Update hacktoberfest setup guidelines (#26522) 2021-10-22 23:41:43 -07:00
internal authz: Add a basic SubRepoPerms client (#26842) 2021-11-03 10:55:15 +01:00
lib Add initial support for Rust auto-indexing. 2021-11-02 09:17:55 -07:00
migrations perf: Faster global settings lookup (#26947) 2021-11-02 17:01:31 +01:00
monitoring executors: add node_exporter dashboards for executor and docker mirror nodes (#26916) 2021-11-02 20:10:49 +00:00
schema Remove acceptSearchSuggestionOnEnter experimental feature (#26928) 2021-11-03 09:20:24 +01:00
third-party-licenses chore: update third-party licenses (#26863) 2021-11-01 00:10:38 +00:00
ui/assets Performance: Split large dependencies into their own individual chunks (take 2) (#26594) 2021-10-29 09:48:10 +01:00
.dockerignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.editorconfig sg: add run-set for core app (#23156) 2021-07-23 07:59:43 +00:00
.eslintignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.eslintrc.js Update enterprise import lint rule reference link (#26628) 2021-10-26 09:35:44 +00:00
.gitattributes monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.gitignore Performance: Pre-compress and serve Brotli assets (#25952) 2021-10-15 11:55:12 +01:00
.golangci.yml Fix ioutil rule in golangci-lint (#24583) 2021-09-03 12:42:57 +02:00
.graphqlrc.yml Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
.mailmap Add Camden to mailmap (#19488) 2021-03-26 16:32:13 +00:00
.mocharc.js web: make web integration tests great again! (#25027) 2021-09-23 16:32:25 +02:00
.nvmrc Upgrade to node.js 16 (#24109) 2021-08-19 12:32:43 +02:00
.percy.yml web: make web integration tests great again! (#25027) 2021-09-23 16:32:25 +02:00
.prettierignore monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.stylelintignore docs: extension architecture (#15679) 2020-12-02 21:17:24 -05:00
.stylelintrc.json Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.tool-versions ci: add trivy security scanning step (#25756) 2021-10-13 16:28:07 -07:00
.yarnrc Ignore workspace root check (#19608) 2021-03-31 15:30:11 +01:00
babel.config.js GraphQL Client: Add Apollo/client and implement on profile settings page (#22166) 2021-06-29 09:23:33 +01:00
CHANGELOG.md search: remove repogroup filter (#26424) 2021-11-02 12:32:22 +01:00
CODENOTIFY CODENOTIFY: remove myself from code insights & add API docs (#26688) 2021-10-26 14:35:52 -07:00
CONTRIBUTING.md Update handbook links in doc (#26848) 2021-11-02 00:09:49 +08:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod Insights: mutation to crate line chart search insight (#26472) 2021-10-22 13:16:47 -07:00
go.sum Insights: mutation to crate line chart search insight (#26472) 2021-10-22 13:16:47 -07:00
graphql-schema-linter.config.js Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
gulpfile.js Improve integration test suite CI run script (#24666) 2021-09-07 16:07:11 +02:00
jest.config.base.js chore: Add use-resize-observer mock (#25361) 2021-09-28 14:05:41 +07:00
jest.config.js web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
LICENSE update licensing language (#25620) 2021-10-04 15:40:59 +01:00
LICENSE.apache Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
LICENSE.enterprise clarify license (#2543) 2019-03-03 16:39:46 +08:00
lighthouserc.js Lighthouse: Fix port and run synchronously (#26102) 2021-10-15 09:54:28 +01:00
package.json Performance: Split large dependencies into their own individual chunks (take 2) (#26594) 2021-10-29 09:48:10 +01:00
postcss.config.js extensibility: add featured extensions to registry (#21665) 2021-06-10 13:55:20 -04:00
prettier.config.js Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
README.md Update handbook links in doc (#26848) 2021-11-02 00:09:49 +08:00
renovate.json update upstream alpine (#24896) 2021-09-13 12:27:29 -05:00
SECURITY.md consolidate security policy (#7906) 2020-01-21 10:03:11 -08:00
sg.config.yaml sg: correctly download jaeger (#26984) 2021-11-03 12:15:18 +02:00
shell.nix nix: add golangci-lint (#25592) 2021-10-01 15:39:40 +02:00
svgo.config.js Performance: Optimize static SVG assets with SVGO (#26285) 2021-10-27 15:27:36 +01:00
tsconfig.all.json web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock Performance: Split large dependencies into their own individual chunks (take 2) (#26594) 2021-10-29 09:48:10 +01:00

Sourcegraph

build

Sourcegraph is a fast and featureful code search and navigation engine.

sourcegraph com_github com_golang_go_-_blob_src_net_http_request go_L855_6

Features

Try it now

Sourcegraph has three editions:

  • Sourcegraph Cloud lets you search over the open-source ecosystem plus your private code. Search strings, search patterns, search symbols and find references across your entire codebase and the open-source world.
  • Sourcegraph Enterprise lets you run your own Sourcegraph instance in your own environment.
  • Sourcegraph OSS is an open-source version of Sourcegraph that provides the core functionality of Sourcegraph (code search, code browsing, basic code navigation), but lacks more advanced features (enterprise authentication, repository permissions, admin controls, advanced code navigation, etc.)

Source code for all three editions is contained in this repository. See the License section for more details.

More:

  • Install the open-source browser extension to add Sourcegraph-like powers to your code review and code host.
  • File feature requests and bug reports in our issue tracker.
  • Visit about.sourcegraph.com for more information about features, use cases, and organizations that use Sourcegraph.

Self-hosted installation

Sourcegraph Enterprise (free up to 10 users)

The fastest way to run Sourcegraph self-hosted is with the Docker container. See the quickstart installation guide. There are also several additional ways of running a production instance.

Sourcegraph OSS

  1. Install dependencies
  2. Clone this repository
  3. Install sg
  4. Ensure Docker is running
  5. Initialize the PostgreSQL database
  6. Configure the HTTPS reverse proxy
  7. Start the development server
    sg start oss
    

Sourcegraph should now be running at https://sourcegraph.test:3443.

For detailed instructions and troubleshooting, see the local development documentation.

Development

Refer to the Developing Sourcegraph guide to get started.

Documentation

The doc directory has additional documentation for developing and understanding Sourcegraph:

License

This repository contains both OSS-licensed and non-OSS-licensed files. We maintain one repository rather than two separate repositories mainly for development convenience.

All files in the enterprise and client/web/src/enterprise fall under LICENSE.enterprise.

The remaining files fall under the Apache 2 license. Sourcegraph OSS is built only from the Apache-licensed files in this repository.