diff --git a/.tool-versions b/.tool-versions index 6bc74c5..1a59aeb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.22.1 +golang 1.23.0 diff --git a/Dockerfile b/Dockerfile index 0a0fe64..66ec729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,16 +15,16 @@ # # And use this digest in FROM -ARG base_sha=829eff99a4b2abffe68f6a3847337bf6455d69d17e49ec1a97dac78834754bd6 +ARG base_sha=8e529b64d382182bb84f201dea3c72118f6ae9bc01d27190ffc5a54acf0091d2 -FROM golang:1.22.5@sha256:${base_sha} as builder +FROM golang:1.23.0@sha256:${base_sha} as builder COPY . /sources WORKDIR /sources RUN go build -o scip-go ./cmd/scip-go # Keep in sync with builder image -FROM golang:1.22.5@sha256:${base_sha} as final +FROM golang:1.23.0@sha256:${base_sha} as final COPY --from=builder /sources/scip-go /usr/bin/ CMD ["scip-go"] diff --git a/go.mod b/go.mod index bfbd6be..1de4dde 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/sourcegraph/scip-go -go 1.22 +go 1.23 require ( github.com/efritz/pentimento v0.0.0-20190429011147-ade47d831101 diff --git a/internal/loader/stdlib.go b/internal/loader/stdlib.go index 8cdf16b..08fad3b 100644 --- a/internal/loader/stdlib.go +++ b/internal/loader/stdlib.go @@ -1,5 +1,5 @@ // THIS FILE IS GENERATED. SEE ./scripts/gen_std_lib.sh -// Generated by: go version go1.21.5 darwin/arm64 +// Generated by: go version go1.23.0 darwin/arm64 package loader var contained = struct{}{} @@ -29,6 +29,7 @@ var stdPackages = map[string]struct{}{ "index": contained, "internal": contained, "io": contained, + "iter": contained, "log": contained, "maps": contained, "math": contained, @@ -44,12 +45,14 @@ var stdPackages = map[string]struct{}{ "sort": contained, "strconv": contained, "strings": contained, + "structs": contained, "sync": contained, "syscall": contained, "testing": contained, "text": contained, "time": contained, "unicode": contained, + "unique": contained, "unsafe": contained, "vendor": contained, } diff --git a/internal/testdata/snapshots/output/testdata/implementations.go b/internal/testdata/snapshots/output/testdata/implementations.go index b4ebfcd..eaf3fe0 100755 --- a/internal/testdata/snapshots/output/testdata/implementations.go +++ b/internal/testdata/snapshots/output/testdata/implementations.go @@ -34,8 +34,6 @@ // ^^ reference 0.1.test `sg/testdata`/T1# // ^^ definition 0.1.test `sg/testdata`/T1#F1(). // documentation ```go -// relationship 0.1.test `sg/testdata`/I1#F1. implementation -// relationship 0.1.test `sg/testdata`/I1#F1. implementation // relationship 0.1.test `sg/testdata`/I1#F1. implementation type T2 int @@ -60,12 +58,10 @@ type A1 = T1 // ^^ definition 0.1.test `sg/testdata`/A1# // documentation ```go -// relationship 0.1.test `sg/testdata`/I1# implementation // ^^ reference 0.1.test `sg/testdata`/T1# type A12 = A1 // ^^^ definition 0.1.test `sg/testdata`/A12# // documentation ```go -// relationship 0.1.test `sg/testdata`/I1# implementation // ^^ reference 0.1.test `sg/testdata`/A1# type InterfaceWithNonExportedMethod interface {