Code AI platform with Code Search & Cody
Go to file
Keegan Carruthers-Smith 039b26201f
all: replace regexp with grafana/regexp (#30948)
grafana/regexp's speedup branch contains the stdlib regexp with multiple
patches applied to speed up regexp. The benchmark improvements are quite
impressive across the board. The series of patches are being considered
for inclusion in golang. I took a look over them, and they look legit
enough for us to start using it.

This commit replaces all uses of regexp with grafana/regexp. This
replacement was done via a simple string replace on

  ^\s*"regexp"

Followed by goimports -w across the repository. I then manually
inspected each result to ensure it was on an import.
2022-02-14 09:08:21 +00:00
.buildkite dev/ci: introduce and migrate to bk.AnnotatedCmd (#30951) 2022-02-11 12:32:26 -08:00
.github Turn on client/web/ uploads. (#31080) 2022-02-11 16:20:35 +00:00
.vscode vsce: create vscode package, establish architecture (#29997) 2022-01-20 19:06:56 -05:00
client Revert "Webapp: Update @reach-ui and react-focus packages versions (#30845)" (#31132) 2022-02-13 08:11:28 +01:00
cmd all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
dev all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
doc dev/ci: introduce and migrate to bk.AnnotatedCmd (#30951) 2022-02-11 12:32:26 -08:00
docker-images docker-images: upgrade prometheus to 2.33.1 (#31042) 2022-02-11 16:16:04 +02:00
enterprise all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
hacktoberfest hacktoberfest: fix sentence case in the subheading (#29297) 2022-01-11 12:09:48 +08:00
internal all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
lib all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
migrations Code monitors: add (currently unused) include_results option (#31001) 2022-02-11 14:36:32 -07:00
monitoring monitoring: Migrate core-application alerts to Cloud SaaS and DevOps teams (#26865) 2022-02-11 20:05:49 +05:30
proto LSIF Typed: minor additions to prepare typed->graph conversion tool (#30756) 2022-02-07 16:50:54 +00:00
schema [cloud][CLOUD-187] Base64 encoded HMAC signing key (#30960) 2022-02-10 14:26:47 +00:00
third-party-licenses chore: update third-party licenses (#29232) 2022-01-11 18:24:51 -08:00
ui/assets Allow embedding a subset of the Sourcegraph web app into iframes (#30669) 2022-02-11 07:20:21 +01:00
.dockerignore cleanup old vagrant tests (#29391) 2022-01-04 11:19:37 -05: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 Wildcard V2: <Link /> Manual migration (#30534) 2022-02-02 05:38:47 -08:00
.gitattributes Add missing .gitattributes files for various generated files (#30092) 2022-01-25 16:36:21 +05:30
.gitignore dev/ci: introduce and migrate to bk.AnnotatedCmd (#30951) 2022-02-11 12:32:26 -08:00
.golangci.yml all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
.graphqlrc.yml Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
.hadolint.yaml images: update dependencies to always use >= (#29493) 2022-01-06 15:54:09 -08:00
.mailmap mailmap: update replacements for Joe (#29614) 2022-01-12 10:56:56 +08: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 ci: caching mechanism for stateless agents (#30492) 2022-02-07 11:12:31 +01:00
.stylelintignore docs: extension architecture (#15679) 2020-12-02 21:17:24 -05:00
.stylelintrc.json web: seal CSS modules migration with linter rules (#30354) 2022-01-28 07:25:17 -08:00
.tool-versions Revert "dev: Upgrade trivy and packer (#30852)" (#30862) 2022-02-08 23:58:43 +01:00
.trivyignore ci: ignore benign CVE-2021-43816 in prometheus (#31069) 2022-02-11 16:49:10 +00: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
buf.gen.yaml lsif-typed: Add reference documentation (#29750) 2022-01-14 09:29:43 -06:00
buf.work.yaml RFC 519: Add LSIF typed schema (#29457) 2022-01-11 16:16:12 -06:00
CHANGELOG.md gitserver: use TLS configuration when pushing (#31014) 2022-02-10 14:23:55 -08:00
CODENOTIFY CODENOTIFY: remove myself from code insights & add API docs (#26688) 2021-10-26 14:35:52 -07:00
CONTRIBUTING.md doc: refresh review guide, note required reviews (#29146) 2021-12-17 11:58:16 -08:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00:00
go.sum all: replace regexp with grafana/regexp (#30948) 2022-02-14 09:08:21 +00: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 wildcard: move react-loading-spinner dependency to within wildcard (#29131) 2022-01-05 22:11:27 +07:00
jest.config.js tests: use glob for jest projects field (#29681) 2022-01-13 01:11:52 -08: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 protocol_timeout (#27565) 2021-12-10 15:56:16 +00:00
package.json Revert "Webapp: Update @reach-ui and react-focus packages versions (#30845)" (#31132) 2022-02-13 08:11:28 +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 readme: fix quickstart link (#28951) 2021-12-13 16:18:00 -06:00
renovate.json workflows: remove automerge action for other automerge methods (#28993) 2021-12-14 08:52:57 -08:00
SECURITY.md consolidate security policy (#7906) 2020-01-21 10:03:11 -08:00
sg.config.yaml sg: un-revert redesigned checks functionality after fixing wrong checks name and err handler (#31124) 2022-02-12 19:36:28 +01:00
shell.nix nix: remove watchman (#30867) 2022-02-09 15:49:59 +00:00
svgo.config.js Performance: Optimize static SVG assets with SVGO (#26285) 2021-10-27 15:27:36 +01:00
tsconfig.all.json Create search and search-ui packages (#29773) 2022-01-20 12:56:23 -05:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock Revert "Webapp: Update @reach-ui and react-focus packages versions (#30845)" (#31132) 2022-02-13 08:11:28 +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. Go through Quickstart to install sg and dependencies
  2. Start the development environment in OSS mode:
    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.