Skip to content

Commit 231d302

Browse files
ci: install scip-go with the repo's Go toolchain instead of the stale Docker image
Amp-Thread-ID: https://ampcode.com/threads/T-01a18b16-df86-7399-a300-979289761a30 Co-authored-by: Amp <amp@ampcode.com>
1 parent 8aaf946 commit 231d302

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/workflows/scip.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
jobs:
66
scip-go:
77
runs-on: ubuntu-latest
8-
# Docker Hub's sourcegraph/scip-go stopped at v0.1.26 (Go 1.26), which
9-
# does not know Go 1.27's new stdlib uuid package. Releases now publish
10-
# to ghcr.io/scip-code/scip-go.
11-
container: ghcr.io/scip-code/scip-go:v0.2.9
128
steps:
139
- uses: actions/checkout@v7
1410
- name: Get Go version from mise
@@ -19,8 +15,11 @@ jobs:
1915
with:
2016
go-version: ${{ steps.mise.outputs.go-version }}
2117

22-
- name: Set directory to safe for git
23-
run: git config --global --add safe.directory $GITHUB_WORKSPACE
18+
# Built with the same Go toolchain as src-cli, so scip-go recognizes
19+
# every stdlib package of that Go version. The sourcegraph/scip-go
20+
# Docker image stopped at v0.1.26 (Go 1.26) and fails on Go 1.27.
21+
- name: Install scip-go
22+
run: go install github.com/scip-code/scip-go/cmd/scip-go@v0.2.9
2423

2524
- name: Build src-cli
2625
run: go build -o ./src-cli ./cmd/src

0 commit comments

Comments
 (0)