Skip to content

Commit

Permalink
chore: Update scip-go for Go 1.23 (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
varungandhi-src authored Aug 14, 2024
1 parent 9ab64c7 commit 4fc9085
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.22.1
golang 1.23.0
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
# <other stuff to ignore>
# 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"]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion internal/loader/stdlib.go
Original file line number Diff line number Diff line change
@@ -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{}{}
Expand Down Expand Up @@ -29,6 +29,7 @@ var stdPackages = map[string]struct{}{
"index": contained,
"internal": contained,
"io": contained,
"iter": contained,
"log": contained,
"maps": contained,
"math": contained,
Expand All @@ -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,
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 4fc9085

Please sign in to comment.