Code AI platform with Code Search & Cody
Go to file
Erik Seliger 6778dd414c
batches: Refactor changeset syncer (#23654)
This PR refactors the changeset syncer to get it a step closer to being able to run outside of repo-updater.
- Removes the hook based syncer startup/shutdown in favor of polling the database for a list of code hosts every once in a while
- Removes global initialization of metrics
- Makes SyncRegistry fulfil the goroutine.BackgroundRoutine interface
- Migrates to go-mockgen in the syncer tests, it's simple to use and made it easier for me to fix the tests
2021-08-06 12:01:13 +02:00
.buildkite add status check (#21674) 2021-06-02 22:26:24 +00:00
.github Expand to code intel labels (#23635) 2021-08-05 17:11:53 -03:00
.vscode dx: enable problems mode for eslint-vscode extension (#22637) 2021-07-08 14:46:25 +08:00
client Code Insights: Add a click to trigger the disappearance of chart tooltip (fix flaky screenshot test) (#23670) 2021-08-06 11:38:50 +03:00
cmd batches: Refactor changeset syncer (#23654) 2021-08-06 12:01:13 +02:00
dev gomod: update zoekt for more robust indexing (#23610) 2021-08-05 09:42:25 +00:00
doc monitoring: remove repos_priorities graph (#23637) 2021-08-05 19:33:35 +00:00
docker-images prometheus: upgrade to v2.28.1 (#23663) 2021-08-06 02:00:31 +00:00
enterprise batches: Refactor changeset syncer (#23654) 2021-08-06 12:01:13 +02:00
internal repos: Stop querying the repo.cloned column (#23632) 2021-08-06 10:19:58 +02:00
lib codeintel: Rename semantic package to precise (#23487) 2021-08-04 14:45:52 -05:00
migrations usagestats: add public event properties for event logs and send public properties to BigQuery (#23627) 2021-08-06 14:47:05 +08:00
monitoring monitoring: remove repos_priorities graph (#23637) 2021-08-05 19:33:35 +00:00
schema Fix alertmanaged config (#23639) 2021-08-05 14:27:22 -07:00
third-party-licenses chore: update third-party licenses (#23439) 2021-08-02 05:19:27 +00:00
ui/assets Search homepage redesign (#23264) 2021-07-28 20:19:12 +02: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 Allow default export for storybook stories (#23630) 2021-08-05 12:28:40 -07:00
.gitattributes monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.gitignore sg: Add sg rfc [list|search|open] commands (#22927) 2021-07-19 18:05:17 +02:00
.gitmodules Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.golangci.yml dx: Vet use of errors (#22704) 2021-07-12 19:51:38 +00: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 Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
.nvmrc Update Node.js to v14.15.4 (#16981) 2021-01-06 14:46:23 +01:00
.percy.yml Disable 960px screenshots in Percy (#20511) 2021-04-29 12:52:14 +01: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 Remove nodejs from .tool-versions (#23255) 2021-07-29 09:57:45 -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 prometheus: upgrade to v2.28.1 (#23663) 2021-08-06 02:00:31 +00:00
CODENOTIFY Deglobalize CODENOTIFY settings for eseliger (#16710) 2020-12-14 15:50:22 +01:00
CONTRIBUTING.md fix: update broken link to code of conduct (#7781) 2020-01-15 13:45:14 -08:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod prometheus: upgrade to v2.28.1 (#23663) 2021-08-06 02:00:31 +00:00
go.sum prometheus: upgrade to v2.28.1 (#23663) 2021-08-06 02:00:31 +00:00
graphql-schema-linter.config.js Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
gulpfile.js web: add CSS-modules support (#19919) 2021-04-14 18:46:49 +08:00
jest.config.base.js web: mock _.uniqueId() in tests (#21391) 2021-05-26 22:32:29 +08:00
jest.config.js web: moved Storybook config into a new package (#19569) 2021-04-08 17:16:26 +08:00
LICENSE exclude all directories named "enterprise" from apache license (#23150) 2021-07-22 17:58:33 -07: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
package.json extensibility: create integration test harness for browser extension (#23235) 2021-08-04 09:28:47 -04: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 docs: redesign homepage and update admin/install (#22965) 2021-07-20 07:26:30 +08:00
renovate.json web: enable cross-theme screenshots in Chromatic (#20349) 2021-04-28 22:19:55 +08:00
SECURITY.md consolidate security policy (#7906) 2020-01-21 10:03:11 -08:00
sg.config.yaml sg: Always set GO111MODULE=on (#23658) 2021-08-06 10:51:09 +02:00
tsconfig.all.json extensibility: create integration test harness for browser extension (#23235) 2021-08-04 09:28:47 -04:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock Restrict importing from enterprise in OSS codebase (#23044) 2021-07-21 09:26:16 -07:00

Sourcegraph

build apache license

Sourcegraph OSS edition is a fast, open-source, fully-featured code search and navigation engine. Enterprise editions are available.

Screenshot

Features

Try it yourself

Installation

Prebuilt Docker images are the fastest way to use Sourcegraph Enterprise. See the quickstart installation guide.

To use Sourcegraph OSS:

  1. Initialize the PostgreSQL database
  2. Ensure Docker is running
  3. Configure the HTTPS reverse proxy
  4. Start the development server
    ./dev/start.sh
    

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

Sourcegraph OSS is available freely under the Apache 2 license. Sourcegraph OSS comprises all files in this repository except those in the enterprise/ and client/web/src/enterprise directories.

All files in the enterprise/ and client/web/src/enterprise/ directories are subject to the Sourcegraph Enterprise license.