Skip to content

Commit 806985b

Browse files
authored
Remove LSIF functionality, keeping only SCIP support (#1184)
1 parent f454b2c commit 806985b

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmd/src/lsif* @sourcegraph/team-graph
21
cmd/src/code_intel* @sourcegraph/team-graph
32

43
cmd/src/search* @sourcegraph/search-platform

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
168168
- `src config` - manage global, org, and user settings
169169
- `src extsvc` - manage external services (repository configuration)
170170
- `src extensions` - manage extensions
171-
- `src code-intel` - manages Code Intelligence data (deprecated alias: `src lsif`)
171+
- `src code-intel` - manages Code Intelligence data
172172
- `src serve-git` - serves your local git repositories over HTTP for Sourcegraph to pull
173173
- `src version` - check version and guaranteed-compatible version for your Sourcegraph instance
174174

cmd/src/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ go_library(
4848
"format.go",
4949
"headers.go",
5050
"login.go",
51-
"lsif.go",
5251
"main.go",
5352
"orgs.go",
5453
"orgs_create.go",
@@ -132,7 +131,6 @@ go_library(
132131
"@com_github_sourcegraph_scip//bindings/go/scip",
133132
"@com_github_sourcegraph_sourcegraph_lib//batches",
134133
"@com_github_sourcegraph_sourcegraph_lib//batches/template",
135-
"@com_github_sourcegraph_sourcegraph_lib//codeintel/lsif/scip",
136134
"@com_github_sourcegraph_sourcegraph_lib//codeintel/upload",
137135
"@com_github_sourcegraph_sourcegraph_lib//errors",
138136
"@com_github_sourcegraph_sourcegraph_lib//output",

cmd/src/code_intel_upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func makeCodeIntelUploadURL(uploadID int) (string, error) {
202202
return "", err
203203
}
204204

205-
graphqlID := base64.URLEncoding.EncodeToString([]byte(fmt.Sprintf(`LSIFUpload:%d`, uploadID)))
205+
graphqlID := base64.URLEncoding.EncodeToString([]byte(fmt.Sprintf(`SCIPUpload:%d`, uploadID)))
206206
url.Path = codeintelUploadFlags.repo + "/-/code-intelligence/uploads/" + graphqlID
207207
url.User = nil
208208
return url.String(), nil

cmd/src/code_intel_upload_vendored.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ func makeUploadURL(opts uploadRequestOptions) (*url.URL, error) {
501501

502502
path := opts.SourcegraphInstanceOptions.Path
503503
if path == "" {
504-
path = "/.api/lsif/upload"
504+
path = "/.api/scip/upload"
505505
}
506506

507507
parsedUrl, err := url.Parse(opts.SourcegraphInstanceOptions.SourcegraphURL + path)

0 commit comments

Comments
 (0)