Code AI platform with Code Search & Cody
Go to file
Robert Lin 022b4ad95f
msp/terraformcloud: add option to respect existing run mode (#62580)
When using https://github.com/sourcegraph/sourcegraph/pull/62565, we override test environments that are in CLI mode, which can cause infra to be rolled out by surprise via VCS mode on switch - this change adds an option to respect the existing run mode configuration via `-workspace-run-mode=ignore`.

Thread: https://sourcegraph.slack.com/archives/C06JENN2QBF/p1715256898022469?thread_ts=1715251558.736709&cid=C06JENN2QBF

## Test plan

```
sg msp tfc sync -all
👉 Syncing all environments for all services, including setting ALL workspaces to use run mode "vcs" (use '-workspace-run-mode=ignore' to respect the existing run mode) - are you sure? (y/N)  N
 aborting
Projects/sourcegraph/managed-services 1 » sg msp tfc sync -all -workspace-run-mode=ignore
👉 Syncing all environments for all services - are you sure? (y/N)  y
// ...
```
2024-05-09 14:57:40 -07:00
.apko Build images end-to-end using Bazel v2 (#61845) 2024-04-12 16:18:43 +01:00
.aspect chore: remove overridden repository cache flag from bazelrc (#62539) 2024-05-08 14:08:34 +00:00
.buildkite Revert "ci: remove softfail backcompat mitigation (#62230)" (#62414) 2024-05-03 08:36:10 +00:00
.github chore(ci): Remove dead boards (#62544) 2024-05-08 14:45:39 +00:00
.vscode release: drop legacy release tooling (#61220) 2024-04-09 14:29:35 -05:00
client Svelte: implement symbol redesign (#62473) 2024-05-09 15:22:49 +00:00
cmd Make ignored types more explicit (#62576) 2024-05-09 12:25:52 -04:00
dev msp/terraformcloud: add option to respect existing run mode (#62580) 2024-05-09 14:57:40 -07:00
doc chore: fix typos (#62532) 2024-05-08 09:32:26 +02:00
docker-images scip-ctags: Fix line number mismatch due to scopes (#62345) 2024-05-02 12:46:58 -04:00
internal Make ignored types more explicit (#62576) 2024-05-09 12:25:52 -04:00
lib msp/runtime: export Cloud SQL conection internals for direct usage (#62524) 2024-05-09 14:42:06 -07:00
migrations search jobs: add index on state column (#62145) 2024-04-25 09:17:09 +02:00
monitoring gitserver: Fixup confusing label on monitoring dashboard (#62424) 2024-05-03 19:58:23 +02:00
schema Add 'internal' case for repositoryQuery (#62266) 2024-05-02 15:32:39 +02:00
testing feat(rel): plug upgradetest into release tests (#61563) 2024-04-19 16:36:38 +02:00
third_party bazel: bump rules_go to 0.47.0 (#62147) 2024-04-25 17:08:10 +02:00
third-party-licenses chore: Completely sunset qdrant (#62018) 2024-04-22 18:00:57 +02:00
tools release: handle more registries for promotion (#62269) 2024-05-02 10:16:58 +02:00
ui/assets Revert "use vite for web builds (#58228)" (#59132) 2023-12-20 16:23:45 -03:00
wolfi-images Auto-update package lockfiles for Sourcegraph base images (#62326) 2024-05-07 16:59:55 -04:00
wolfi-packages Simplify path mapping of p4-fusion package (#62095) 2024-05-01 01:52:37 +02:00
.bazel_fix_commands.json SG Start Bazel Improvements Take 2 (#60687) 2024-03-05 01:44:21 -08:00
.bazelignore Create a shared Cody Ignore dataset (#61968) 2024-05-09 13:18:35 +00:00
.bazeliskrc chore: upgrade to Aspect CLI 5.8.19 (#59203) 2024-01-02 15:13:24 +01:00
.bazelrc chore: Enable rustfmt (#62371) 2024-05-02 20:56:45 +08:00
.bazelversion bazel: bump to 7.1 (#61092) 2024-03-13 14:52:25 +00:00
.dockerignore use esbuild for client/web builds (#57365) 2023-10-23 10:59:06 -07:00
.editorconfig proto: Add editorconfig to ident using two spaces (#57281) 2023-10-03 00:39:42 +00:00
.eslintrc.js Revert vs-code extension deleting (#61258) 2024-03-20 13:53:27 +01:00
.gitattributes dev/linearhooks: add POC (#62367) 2024-05-07 00:14:05 -07:00
.gitignore ci: emit Bazel BEP file (#62010) 2024-04-23 16:27:35 +01:00
.graphqlrc.yml
.hadolint.yaml bump comby version to 1.7.1 (#35830) 2022-05-20 20:12:01 -07:00
.mailmap mailmap: add entries for Eric and Renovate (#50966) 2023-04-25 09:42:22 +02:00
.mocharc.js reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
.npmrc pnpm: remove update notifier message (#51630) 2023-05-10 08:53:39 +02:00
.percy.yml ci: percy defer snapshots upload (#54116) 2023-06-25 18:57:49 -07:00
.pre-commit-config.yaml exclude pnpm-lock.yaml from precommit (#61158) 2024-03-14 15:35:14 +00:00
.prettierignore dev/linearhooks: add POC (#62367) 2024-05-07 00:14:05 -07:00
.stylelintignore rework plugin structure and implement frontside blogpost (#46883) 2023-02-15 11:49:51 +02:00
.stylelintrc.json web: drop bootstrap depenedency (#41401) 2022-09-07 03:11:26 -07:00
.swcrc use swc instead of babel for faster bazel typescript transpilation (#57912) 2023-11-02 22:49:03 -07:00
.tool-versions bump to Go 1.22.1 (#60902) 2024-03-06 17:38:43 -07:00
.trivyignore
BUILD.bazel chore: Remove redundant loop captures (#62264) 2024-04-30 07:57:21 -06:00
CHANGELOG.md release(5.4.0): update changelog (#62562) 2024-05-08 21:55:27 +00:00
CODENOTIFY nix: update pnpm hash (#51512) 2023-05-05 12:51:59 +00:00
CONTRIBUTING.md Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00:00
deps.bzl gomod: Bump zoekt for UseKeywordScoring rename (#62504) 2024-05-07 13:14:45 -07:00
doc.go
eslint-relative-formatter.js bazel: implement custom ESLint Bazel rule (#52062) 2023-05-22 04:05:45 -07:00
flake.lock nix: bump to bazel 7.1 (#61326) 2024-03-22 16:57:50 +00:00
flake.nix nix: build pg-utils with nix [static edition] (#61734) 2024-04-09 20:24:19 +01:00
gen.go chore: fixup go-mockgen run statement (#61028) 2024-03-12 13:06:36 +00:00
go.mod gomod: Bump zoekt for UseKeywordScoring rename (#62504) 2024-05-07 13:14:45 -07:00
go.sum gomod: Bump zoekt for UseKeywordScoring rename (#62504) 2024-05-07 13:14:45 -07:00
graphql-schema-linter.config.js
LICENSE relicense all paths other than MIT licensed code, client/cody*, jetbrains, VS code, and browser extension to enterprise (#53345) (#53345) 2023-06-13 10:28:11 -07:00
LICENSE.enterprise Update Enterprise license copyright notice (#62467) 2024-05-06 17:35:32 +00:00
linter_deps.bzl chore: Remove redundant loop captures (#62264) 2024-04-30 07:57:21 -06:00
mockgen.temp.yaml gitserver: grpc: create changed files RPC implementation for gRPC server (#62262) 2024-05-07 10:43:40 -07:00
mockgen.test.yaml gitserver: Don't trigger clones in hot requests (#61672) 2024-04-11 18:47:31 +02:00
mockgen.yaml bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
nogo_config.json chore: Remove redundant loop captures (#62264) 2024-04-30 07:57:21 -06:00
package.json Create a shared Cody Ignore dataset (#61968) 2024-05-09 13:18:35 +00:00
pnpm-lock.yaml Create a shared Cody Ignore dataset (#61968) 2024-05-09 13:18:35 +00:00
pnpm-workspace.yaml Create a shared Cody Ignore dataset (#61968) 2024-05-09 13:18:35 +00:00
postcss.config.js
prettier.config.js clean up Cody CSS to increase shareability and improve display in web app (#50279) 2023-04-03 12:29:05 -07:00
README.md Add copyright to README (#62468) 2024-05-06 17:48:33 +00:00
release.yaml release(5.4.0): update changelog (#62562) 2024-05-08 21:55:27 +00:00
renovate.json Require approval to run Renovate (#57608) 2023-10-18 20:36:53 +02:00
SECURITY.md
service-catalog.yaml lib/servicecatalog: init to distribute catalog (#46999) 2023-01-26 17:22:27 -08:00
sg.config.yaml Pass go debug flags to zoekt to enable better debugging (#62346) 2024-05-01 13:25:33 -04:00
shell.nix bazel: use pgutil binaries from GCS instead of from the host (#61741) 2024-04-11 18:00:21 +01:00
stamp_tags.bzl Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
tsconfig.base.json web: fix pnpm-lock issue (#47478) 2023-02-09 22:04:31 -08:00
tsconfig.json release: drop legacy release tooling (#61220) 2024-04-09 14:29:35 -05:00
vitest.shared.ts code intel: Don't rely on URL polyfill to correctly parse git: URIs (#58258) 2023-11-17 19:32:46 +01:00
vitest.workspace.ts vitest: Fix workspace config wrt client/web/ (#58397) 2023-11-17 08:22:46 +00:00
WORKSPACE chore(rel): bump minor for stitch graph + add support invalidating migrations repo rule (#62511) 2024-05-07 22:04:59 +00:00

DocsContributingTwitterDiscord

Build status Scorecard Latest release Discord Contributors


Sourcegraph makes it easy to read, write, and fix code—even in big, complex codebases.

  • Code search: Search all of your repositories across all branches and all code hosts.
  • Code intelligence: Navigate code, find references, see code owners, trace history, and more.
  • Fix and refactor: Roll out large-scale changes to many repositories at once and track big migrations.

Getting started



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 primarily non-OSS-licensed files. See LICENSE.

Copyright (c) 2018-present Sourcegraph Inc.