From d406f4eae911e15aac3299bc95ed55cb60a3f565 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:12:21 +0000 Subject: [PATCH 1/3] Update module github.com/scip-code/scip/bindings/go/scip to v0.8.0 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index a0e3eec..4a81490 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.25.0 require ( github.com/alecthomas/kong v1.15.0 - github.com/scip-code/scip/bindings/go/scip v0.7.1 + github.com/scip-code/scip/bindings/go/scip v0.8.0 golang.org/x/mod v0.36.0 golang.org/x/tools v0.45.0 golang.org/x/tools/go/vcs v0.1.0-deprecated @@ -13,7 +13,7 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/fatih/color v1.18.0 // indirect + github.com/fatih/color v1.19.0 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect diff --git a/go.sum b/go.sum index 9ef57aa..deee842 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= +github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= @@ -28,6 +30,8 @@ github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0t github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/scip-code/scip/bindings/go/scip v0.7.1 h1:x2QVP2nO09TFUGVrNJ+8XakD45KyXn/tSalzAELcB3Q= github.com/scip-code/scip/bindings/go/scip v0.7.1/go.mod h1:XC4dP3um0lKaSDRFIMwYlkBjFxKy1Rw7xFt6KDtRjAk= +github.com/scip-code/scip/bindings/go/scip v0.8.0 h1:WdmhYzDbzgCe8D1PhS61VtFsa+/w+MUAv1Hs7kon0Mo= +github.com/scip-code/scip/bindings/go/scip v0.8.0/go.mod h1:QhuSgP19HyWJIU/bvfBGn/RmkL/BX2IPoZWTNQ9M5wY= github.com/sourcegraph/beaut v0.0.0-20240611013027-627e4c25335a h1:j/CQ27s679M9wRGBRJYyXGrfkYuQA6VMnD7R08mHD9c= github.com/sourcegraph/beaut v0.0.0-20240611013027-627e4c25335a/go.mod h1:JG1sdvGTKWwe/oH3/3UKQ26vfcHIN//7fwEJhoqaBcM= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= From c4c3c8b51e0e4c27bc432d2c1fca338f0ec895f0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:13:47 +0000 Subject: [PATCH 2/3] chore: update vendorHash for go.mod changes --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f9013df..68adfe2 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ pname = "scip-go"; inherit version; src = ./.; - vendorHash = "sha256-idw8+09nW4CUouoYSAQlRfbrc3Dif1BZcwvmYrM3mr0="; + vendorHash = "sha256-8Pp5up/N+v8VqXWHqPXSDSuI9Wwii9FLGAxmHFoxF00="; subPackages = [ "cmd/scip-go" ]; env.CGO_ENABLED = 0; checkPhase = "go test ./..."; From 9b746faad86dc8906a9a7b696db3627a73fb1907 Mon Sep 17 00:00:00 2001 From: jupblb Date: Tue, 2 Jun 2026 12:40:54 +0200 Subject: [PATCH 3/3] Adapt SignatureDocumentation to *scip.Signature for scip v0.8.0 --- internal/document/document.go | 4 ++-- internal/index/scip.go | 2 +- internal/visitors/visitor_file.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/document/document.go b/internal/document/document.go index bd2cbfb..e9f6a3a 100644 --- a/internal/document/document.go +++ b/internal/document/document.go @@ -107,7 +107,7 @@ func (d *Document) SetNewSymbolForPos( ) { var displayName string var documentation []string - var sigDoc *scip.Document + var sigDoc *scip.Signature var def types.Object if ident != nil { @@ -116,7 +116,7 @@ func (d *Document) SetNewSymbolForPos( def = d.pkg.TypesInfo.Defs[ident] if def != nil { if signature := typeStringForObject(def); signature != "" { - sigDoc = &scip.Document{ + sigDoc = &scip.Signature{ Language: "go", Text: signature, } diff --git a/internal/index/scip.go b/internal/index/scip.go index af59a2d..b3061ba 100644 --- a/internal/index/scip.go +++ b/internal/index/scip.go @@ -222,7 +222,7 @@ func indexVisitPackages( Kind: scip.SymbolInformation_Package, DisplayName: pkg.Name, Documentation: findPackageDocs(pkg), - SignatureDocumentation: &scip.Document{ + SignatureDocumentation: &scip.Signature{ Language: "go", Text: "package " + pkg.Name, }, diff --git a/internal/visitors/visitor_file.go b/internal/visitors/visitor_file.go index 36d9e87..625150f 100644 --- a/internal/visitors/visitor_file.go +++ b/internal/visitors/visitor_file.go @@ -345,7 +345,7 @@ func (v *fileVisitor) ToScipDocument() *scip.Document { // type recorded in caseClauses nondeterministic. if _, isTypeSwitchLocal := v.caseClauses[obj.Pos()]; !isTypeSwitchLocal { if txt := local.SignatureText(); txt != "" { - symbolInfo.SignatureDocumentation = &scip.Document{ + symbolInfo.SignatureDocumentation = &scip.Signature{ Language: "go", Text: txt, }