File tree Expand file tree Collapse file tree 5 files changed +9
-41
lines changed Expand file tree Collapse file tree 5 files changed +9
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
steps :
11
11
- uses : actions/checkout@v3
12
12
- run : yarn install
13
- - run : yarn global add ts-node
13
+ - run : yarn global add ts-node @sourcegraph/src
14
14
- run : ts-node src/main.ts index
15
- - run : cp index.scip dump.lsif-typed
16
- - name : Install src-cli
17
- run : |
18
- curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o src-cli
19
- chmod +x ./src-cli
20
- - run : ./src-cli lsif upload -file=dump.lsif-typed "-commit=${GITHUB_SHA}" "-github-token=${GITHUB_TOKEN}"
15
+ - run : src code-intel upload "-commit=${GITHUB_SHA}" "-github-token=${GITHUB_TOKEN}"
21
16
env :
22
17
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5
5
6
6
RUN apk add --no-cache git curl
7
7
8
- RUN curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/bin/src && chmod +x /usr/bin/src
9
-
10
- RUN yarn global add @sourcegraph/scip-typescript@${TAG}
8
+ RUN yarn global add @sourcegraph/scip-typescript@${TAG} @sourcegraph/src
11
9
12
10
CMD ["/bin/sh" ]
Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ ENV NODE_OPTIONS=--max-old-space-size=4096
5
5
6
6
RUN apk add --no-cache git bash curl ca-certificates python3 make libstdc++ libgcc gcc g++ pkgconfig python2 automake autoconf curl
7
7
8
+ # The following line is kept for legacy reasons. We previously invoke the
9
+ # `scip-typescript-autoindex` script during auto-indexing in order to handle
10
+ # SCIP->LSIF conversion. This script is no longer needed since src handles the
11
+ # conversion.
8
12
RUN echo 'scip-typescript "$@" --no-progress-bar' > /usr/bin/scip-typescript-autoindex && chmod +x /usr/bin/scip-typescript-autoindex
9
13
10
- RUN curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/bin/src && chmod +x /usr/bin/src
11
-
12
- RUN yarn global add @sourcegraph/scip-typescript@${TAG}
14
+ RUN yarn global add @sourcegraph/scip-typescript@${TAG} @sourcegraph/src
13
15
14
16
CMD ["/bin/sh"]
Original file line number Diff line number Diff line change @@ -47,12 +47,9 @@ scip-typescript index --yarn-workspaces
47
47
Add the following run steps to your CI pipeline:
48
48
49
49
``` sh
50
- npm install -g @sourcegraph/scip-typescript
50
+ npm install -g @sourcegraph/scip-typescript @sourcegraph/src
51
51
npm install # or yarn install
52
52
scip-typescript index
53
- # From https://github.com/sourcegraph/src-cli/
54
- curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
55
- chmod +x /usr/local/bin/src
56
53
# Upload index with any necessary tokens (shown here using GitHub workflow syntax)
57
54
src lsif upload -github-token=' ${{ secrets.GITHUB_TOKEN }}' -no-progress
58
55
```
You can’t perform that action at this time.
0 commit comments