More updates for deprecated src-cli command (#59633)

removes more deprecated uses of `src lsif`
This commit is contained in:
Christoph Hegemann 2024-01-18 10:52:42 +01:00 committed by GitHub
parent a63f250d6d
commit 6ac8c61294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -40,18 +40,18 @@ jobs:
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
chmod +x /usr/local/bin/src
- name: Upload SCIP to Cloud
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.com/
- name: Upload SCIP to S2
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
- name: Upload lsif to Dogfood
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://k8s.sgdev.org/
- name: Upload lsif to Demo
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://demo.sourcegraph.com/

View File

@ -118,7 +118,7 @@ func transformRecord(ctx context.Context, db database.DB, index uploadsshared.In
Commands: []string{
shellquote.Join(
"src",
"lsif",
"code-intel",
"upload",
"-no-progress",
"-repo", index.RepositoryName,

View File

@ -115,7 +115,7 @@ func TestTransformRecord(t *testing.T) {
strings.Join(
[]string{
"src",
"lsif", "upload",
"code-intel", "upload",
"-no-progress",
"-repo", "linux",
"-commit", "deadbeef",
@ -217,7 +217,7 @@ func TestTransformRecordWithoutIndexer(t *testing.T) {
strings.Join(
[]string{
"src",
"lsif", "upload",
"code-intel", "upload",
"-no-progress",
"-repo", "linux",
"-commit", "deadbeef",
@ -346,7 +346,7 @@ func TestTransformRecordWithSecrets(t *testing.T) {
strings.Join(
[]string{
"src",
"lsif", "upload",
"code-intel", "upload",
"-no-progress",
"-repo", "linux",
"-commit", "deadbeef",
@ -405,7 +405,7 @@ func TestTransformRecordDockerAuthConfig(t *testing.T) {
{
Key: "upload",
Image: fmt.Sprintf("sourcegraph/src-cli:%s", srccli.MinimumVersion),
Commands: []string{"src lsif upload -no-progress -repo '' -commit '' -root . -upload-route /.executors/lsif/upload -file dump.lsif -associated-index-id 42"},
Commands: []string{"src code-intel upload -no-progress -repo '' -commit '' -root . -upload-route /.executors/lsif/upload -file dump.lsif -associated-index-id 42"},
Env: []string{"SRC_ENDPOINT=", "SRC_HEADER_AUTHORIZATION=token-executor hunter2"},
},
},