mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:11:54 +00:00
Code AI platform with Code Search & Cody
* use .Critical accessors; use conf.Unified type
* pkg/conf: add unified configuration types
* {pkg/conf,cmd/...}: rewrite conf package to be database-backed
* pkg/legacyconf: import from sourcegraph@v2.13.6 pkg/conf/ (and reduce)
* legacyschema: import from sourcegraph@v2.13.6 schema/ (and reduce)
* add dev config override support
* cmd/management-console/assets: add assets package for packing web app code
* cmd/management-console/web: initial webapp implementation
* schema: split site.schema.json into site and critical configuration portions
* schema: critical: add gitlab as valid auth.providers key (broken in master)
* web: update to reflect site config changes
* cmd/management-console: initial backend implementation
* cmd/management-console: add Go backend
* cmd/management-console: add TS frontend
* web: site-admin: add management console password alert
* cmd/management-console/internal/tlscertgen: package for TLS certificate generation
* schema: update docs
* upgrade deasync
* pkg/conf: add proper config defaults for each deployment type
* vfsgendev installation fix
* mgmt console web package-lock.json change
* assets doc.go + gitignore change
* gofmt assets
* dev/check: use dev build tag
Some things such as assets are only defined behind a dev build tag OR
after generating something via `go generate`. Since go generate has not
run yet, I am opting to use the `dev` build tag here.
* cmd/management-console/auth_test.go: simplify test
* fix go assets
* pkg/conf/confdefaults
* pkg/conf: validation test fix
* web: update to reflect site configuration changes
* expose management console port in docker run commands
* management-console: go: return concrete type to /update requests, not type that can arbitrarily change in future
* management-console: web: fix saving ID bug + properly display errors
* pkg/db/confdb: return an error if the creator is not up to date
* web mgmt console error handling
* mgmt console go backend ErrNewerEdit
* pkg/conf: fix zero configuration check (marshaled JSON is "{}")
* add linter for accidental transitive imports of pkg/conf in mgmt console
* enterprise/dev/ci: fix building of non-enterprise docker-images branches
* NOCHANGELOG
|
||
|---|---|---|
| .github | ||
| .vscode | ||
| client | ||
| cmd | ||
| dev | ||
| doc | ||
| docs | ||
| enterprise | ||
| legacyschema | ||
| migrations | ||
| packages | ||
| pkg | ||
| schema | ||
| shared | ||
| ui/assets | ||
| web | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .mailmap | ||
| .prettierignore | ||
| .stylelintrc.json | ||
| .yarnrc | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| doc.go | ||
| go.mod | ||
| go.sum | ||
| graphql-schema-linter.config.js | ||
| gulpfile.ts | ||
| LICENSE | ||
| LICENSE.apache | ||
| package.json | ||
| prettier.config.js | ||
| README.md | ||
| renovate.json | ||
| tsconfig.json | ||
| tslint.json | ||
| yarn.lock | ||
Sourcegraph is a fast, open-source, fully-featured code search and navigation engine.
Features
- Fast global code search with a hybrid backend that combines a trigram index with in-memory streaming
- Code intelligence for many languages via the Language Server Protocol
- Enhances GitHub, GitLab, Phabricator, and other code hosts and code review tools via the Sourcegraph browser extension
- Integration with third-party developer tools via the Sourcegraph extension API
Try it yourself
- Try out the public instance on any open-source repository at sourcegraph.com.
- Install the free and open-source browser extension.
- Spin up your own instance with the quickstart installation guide.
- File feature requests and bug reports in our issue tracker.
- Visit about.sourcegraph.com for more information about product features.
Development
Prerequisites
- Git
- Go (1.11 or later)
- Docker
- PostgreSQL (version 9)
- Node.js (version 8 or 10)
- Redis
- Yarn
For a detailed guide to installing prerequisites, see these instructions.
Installation
-
Start the development server
./dev/launch.sh
Sourcegraph should now be running at http://localhost:3080.
For detailed instructions and troubleshooting, see the local development documentation.
Documentation
The docs folder has additional documentation for developing and understanding Sourcegraph:
- Project FAQ
- Architecture: high-level architecture
- Database setup: database setup and best practices
- Style guide
- GraphQL API: useful tips when modifying the GraphQL API
- Contributing
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 src/enterprise
directories.
All files in the enterprise/ and src/enterprise/ directories are subject to the Sourcegraph
Enterprise license.

