mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 12:51:55 +00:00
More updates for deprecated src-cli command (#59633)
removes more deprecated uses of `src lsif`
This commit is contained in:
parent
a63f250d6d
commit
6ac8c61294
8
.github/workflows/scip-typescript.yml
vendored
8
.github/workflows/scip-typescript.yml
vendored
@ -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/
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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"},
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user