fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

go.mod: update to go 1.22.1 (#743)

Our CI pipeline uses apline:edge which now ship with 1.22. I noticed
that matchree_test.go doesn't pass anymore. There seem to have been
changes in regex package which we catch in our tests.

test plan:
go test ./... and CI

Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>

+8 -5
+3
.github/workflows/ci.yml
··· 22 22 fuzz-test: 23 23 name: fuzz test 24 24 runs-on: ubuntu-latest 25 + container: alpine:edge 25 26 steps: 27 + - name: add dependencies 28 + run: apk add bash go 26 29 # Pinned a commit to make go version configurable. 27 30 # This should be safe to upgrade once this commit is in a released version: 28 31 # https://github.com/jidicula/go-fuzz-action/commit/23cc553941669144159507e2cccdbb4afc5b3076
+1 -1
.tool-versions
··· 1 - golang 1.21.2 1 + golang 1.22.1
+1 -1
go.mod
··· 138 138 gopkg.in/yaml.v3 v3.0.1 // indirect 139 139 ) 140 140 141 - go 1.21 141 + go 1.22
+1 -1
matchtree.go
··· 1115 1115 1116 1116 return &symbolRegexpMatchTree{ 1117 1117 regexp: regexp, 1118 - all: regexp.String() == "(?i)(?-s:.)*", 1118 + all: regexp.String() == "(?i)(?-s:.*)", 1119 1119 matchTree: subMT, 1120 1120 }, nil 1121 1121
+2 -2
matchtree_test.go
··· 237 237 regex string 238 238 regexAll bool 239 239 }{ 240 - {query: "sym:.*", regex: "(?i)(?-s:.)*", regexAll: true}, 240 + {query: "sym:.*", regex: "(?i)(?-s:.*)", regexAll: true}, 241 241 {query: "sym:(ab|cd)", regex: "(?i)ab|cd"}, 242 - {query: "sym:b.r", regex: "(?i)b(?-s:.)r"}, 242 + {query: "sym:b.r", regex: "(?i)(?-s:b.r)"}, 243 243 {query: "sym:horse", substr: "horse"}, 244 244 {query: `sym:\bthread\b case:yes`, regex: `\bthread\b`}, // check we disable word search opt 245 245 {query: `sym:\bthread\b case:no`, regex: `(?i)\bthread\b`},