Skip to content

Commit

Permalink
[chore] Bump github.com/alecthomas/participle/v2 (open-telemetry#13330)
Browse files Browse the repository at this point in the history
Bump github.com/alecthomas/participle/v2 from 2.0.0-alpha9 to 2.0.0-beta.5
  • Loading branch information
TylerHelmuth authored Aug 15, 2022
1 parent 8a8b0f5 commit 7b7626b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ require (
github.com/Showmax/go-fqdn v1.0.0 // indirect
github.com/VividCortex/gohistogram v1.0.0 // indirect
github.com/aerospike/aerospike-client-go/v5 v5.9.0 // indirect
github.com/alecthomas/participle/v2 v2.0.0-alpha9 // indirect
github.com/alecthomas/participle/v2 v2.0.0-beta.5 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/aliyun/aliyun-log-go-sdk v0.1.37 // indirect
github.com/antonmedv/expr v1.9.0 // indirect
Expand Down
9 changes: 5 additions & 4 deletions cmd/configschema/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ require (
github.com/Showmax/go-fqdn v1.0.0 // indirect
github.com/VividCortex/gohistogram v1.0.0 // indirect
github.com/aerospike/aerospike-client-go/v5 v5.9.0 // indirect
github.com/alecthomas/participle/v2 v2.0.0-alpha9 // indirect
github.com/alecthomas/participle/v2 v2.0.0-beta.5 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/aliyun/aliyun-log-go-sdk v0.1.37 // indirect
github.com/antonmedv/expr v1.9.0 // indirect
Expand Down
9 changes: 5 additions & 4 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/telemetryquerylanguage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/pkg/telemetryqu
go 1.18

require (
github.com/alecthomas/participle/v2 v2.0.0-alpha9
github.com/alecthomas/participle/v2 v2.0.0-beta.5
github.com/gobwas/glob v0.2.3
github.com/stretchr/testify v1.8.0
go.opentelemetry.io/collector/pdata v0.58.0
Expand Down
10 changes: 5 additions & 5 deletions pkg/telemetryquerylanguage/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions pkg/telemetryquerylanguage/tql/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ func ParseQueries(statements []string, functions map[string]interface{}, pathPar
var parser = newParser()

func parseQuery(raw string) (*ParsedQuery, error) {
parsed := &ParsedQuery{}
err := parser.ParseString("", raw, parsed)
parsed, err := parser.ParseString("", raw)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -216,9 +215,9 @@ func buildLexer() *lexer.StatefulDefinition {

// newParser returns a parser that can be used to read a string into a ParsedQuery. An error will be returned if the string
// is not formatted for the DSL.
func newParser() *participle.Parser {
func newParser() *participle.Parser[ParsedQuery] {
lex := buildLexer()
parser, err := participle.Build(&ParsedQuery{},
parser, err := participle.Build[ParsedQuery](
participle.Lexer(lex),
participle.Unquote("String"),
participle.Elide("whitespace"),
Expand Down
2 changes: 1 addition & 1 deletion processor/transformprocessor/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
)

require (
github.com/alecthomas/participle/v2 v2.0.0-alpha9 // indirect
github.com/alecthomas/participle/v2 v2.0.0-beta.5 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/gobwas/glob v0.2.3 // indirect
Expand Down
10 changes: 5 additions & 5 deletions processor/transformprocessor/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b7626b

Please sign in to comment.