Skip to content

Commit ef09855

Browse files
chore(deps): Bump github.com/yuin/goldmark from 1.6.0 to 1.7.8 (#16467)
Co-authored-by: Dane Strandboge <[email protected]>
1 parent d7866a7 commit ef09855

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ require (
204204
github.com/wavefronthq/wavefront-sdk-go v0.15.0
205205
github.com/x448/float16 v0.8.4
206206
github.com/xdg/scram v1.0.5
207-
github.com/yuin/goldmark v1.6.0
207+
github.com/yuin/goldmark v1.7.8
208208
go.mongodb.org/mongo-driver v1.17.0
209209
go.opentelemetry.io/collector/pdata v1.12.0
210210
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,8 +2427,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1
24272427
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
24282428
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
24292429
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
2430-
github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
2431-
github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
2430+
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
2431+
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
24322432
github.com/yuin/gopher-lua v0.0.0-20200603152657-dc2b0ca8b37e/go.mod h1:gqRgreBUhTSL0GeU64rtZ3Uq3wtjOa/TB2YfrtkCbVQ=
24332433
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da h1:NimzV1aGyq29m5ukMK0AMWEhFaL/lrEOaephfuoiARg=
24342434
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da/go.mod h1:E1AXubJBdNmFERAOucpDIxNzeGfLzg0mYh+UfMWdChA=

tools/license_checker/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ func main() {
139139
for lineElementNode := lineRoot.FirstChild().FirstChild(); lineElementNode != nil; lineElementNode = lineElementNode.NextSibling() {
140140
switch v := lineElementNode.(type) {
141141
case *ast.Text:
142-
name += string(v.Text(line))
142+
name += string(v.Value(line))
143143
case *ast.Link:
144-
license = string(v.Text(line))
144+
license = string(v.FirstChild().(*ast.Text).Value(line))
145145
link = string(v.Destination)
146146
default:
147147
debugf("ignoring unknown element %T (%v)", v, v)

tools/readme_config_includer/generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func main() {
165165
if lines.Len() > 0 {
166166
stop = lines.At(lines.Len() - 1).Stop
167167
}
168-
txt = node.Info.Text(readme)
168+
txt = node.Info.Value(readme)
169169
re = tomlIncludesEx
170170
case *ast.Heading:
171171
if node.ChildCount() < 2 {
@@ -186,6 +186,7 @@ func main() {
186186
if rawnode.Lines().Len() > 0 {
187187
stop = rawnode.Lines().At(0).Start - h.Level - 1
188188
} else {
189+
//nolint:staticcheck // need to use this since we aren't sure the type
189190
log.Printf("heading without lines: %s", string(rawnode.Text(readme)))
190191
stop = start // safety measure to prevent removing all text
191192
}

tools/readme_linter/assert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (t *T) assertFirstChildRegexp(expectedPattern string, n ast.Node) {
118118
}
119119
c := n.FirstChild()
120120

121+
//nolint:staticcheck // need to use this since we aren't sure the type
121122
actual := string(c.Text(t.markdown))
122123

123124
if !validRegexp.MatchString(actual) {

tools/readme_linter/rules.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func firstSection(t *T, root ast.Node) error {
3131
// Make sure there is some text after the heading
3232
n = n.NextSibling()
3333
t.assertKind(ast.KindParagraph, n)
34-
length := len(n.Text(t.markdown))
34+
length := len(n.(*ast.Paragraph).Lines().Value(t.markdown))
3535
if length < 30 {
3636
t.assertNodef(n, "short first section. Please add short description of plugin. length %d, minimum 30", length)
3737
}
@@ -62,6 +62,7 @@ func requiredSections(t *T, root ast.Node, headings []string) error {
6262
if child == nil {
6363
continue
6464
}
65+
//nolint:staticcheck // need to use this since we aren't sure the type
6566
title := strings.TrimSpace(string(child.Text(t.markdown)))
6667
if headingsSet.has(title) && h.Level != expectedLevel {
6768
t.assertNodef(n, "has required section %q but wrong heading level. Expected level %d, found %d",
@@ -155,6 +156,7 @@ func configSection(t *T, root ast.Node) error {
155156
continue
156157
}
157158

159+
//nolint:staticcheck // need to use this since we aren't sure the type
158160
title := string(h.FirstChild().Text(t.markdown))
159161
if title == expectedTitle {
160162
config = h

0 commit comments

Comments
 (0)