Skip to content

Commit 5e6523a

Browse files
authored
Update go dependencies (#32389)
1 parent 9914c9a commit 5e6523a

File tree

9 files changed

+339
-361
lines changed

9 files changed

+339
-361
lines changed

assets/go-licenses.json

Lines changed: 11 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 94 additions & 97 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 226 additions & 236 deletions
Large diffs are not rendered by default.

modules/indexer/internal/meilisearch/indexer.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// Indexer represents a basic meilisearch indexer implementation
1414
type Indexer struct {
15-
Client *meilisearch.Client
15+
Client meilisearch.ServiceManager
1616

1717
url, apiKey string
1818
indexName string
@@ -40,11 +40,7 @@ func (i *Indexer) Init(_ context.Context) (bool, error) {
4040
return false, fmt.Errorf("indexer is already initialized")
4141
}
4242

43-
i.Client = meilisearch.NewClient(meilisearch.ClientConfig{
44-
Host: i.url,
45-
APIKey: i.apiKey,
46-
})
47-
43+
i.Client = meilisearch.New(i.url, meilisearch.WithAPIKey(i.apiKey))
4844
_, err := i.Client.GetIndex(i.VersionedIndexName())
4945
if err == nil {
5046
return true, nil

modules/markup/markdown/transform_blockquote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (g *ASTTransformer) extractBlockquoteAttentionEmphasis(firstParagraph ast.N
4545
if !ok {
4646
return "", nil
4747
}
48-
val1 := string(node1.Text(reader.Source()))
48+
val1 := string(node1.Text(reader.Source())) //nolint:staticcheck
4949
attentionType := strings.ToLower(val1)
5050
if g.attentionTypes.Contains(attentionType) {
5151
return attentionType, []ast.Node{node1}

modules/markup/markdown/transform_codespan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func cssColorHandler(value string) bool {
6969
}
7070

7171
func (g *ASTTransformer) transformCodeSpan(_ *markup.RenderContext, v *ast.CodeSpan, reader text.Reader) {
72-
colorContent := v.Text(reader.Source())
72+
colorContent := v.Text(reader.Source()) //nolint:staticcheck
7373
if cssColorHandler(string(colorContent)) {
7474
v.AppendChild(v, NewColorPreview(colorContent))
7575
}

modules/markup/markdown/transform_heading.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Headin
1919
v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value)))
2020
}
2121
}
22-
txt := v.Text(reader.Source())
22+
txt := v.Text(reader.Source()) //nolint:staticcheck
2323
header := markup.Header{
2424
Text: util.UnsafeBytesToString(txt),
2525
Level: v.Level,

modules/markup/mdstripper/mdstripper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (r *stripRenderer) Render(w io.Writer, source []byte, doc ast.Node) error {
4646
coalesce := prevSibIsText
4747
r.processString(
4848
w,
49-
v.Text(source),
49+
v.Text(source), //nolint:staticcheck
5050
coalesce)
5151
if v.SoftLineBreak() {
5252
r.doubleSpace(w)

services/auth/source/ldap/source_search.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ func dial(source *Source) (*ldap.Conn, error) {
117117
}
118118

119119
if source.SecurityProtocol == SecurityProtocolLDAPS {
120-
return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig)
120+
return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig) //nolint:staticcheck
121121
}
122122

123-
conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)))
123+
conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port))) //nolint:staticcheck
124124
if err != nil {
125125
return nil, fmt.Errorf("error during Dial: %w", err)
126126
}

0 commit comments

Comments
 (0)