chore(deps): Bump github.com/yuin/goldmark from 1.6.0 to 1.7.8 (#16467)
Co-authored-by: Dane Strandboge <dstrandboge@influxdata.com>
This commit is contained in:
parent
d7866a786c
commit
ef098557ba
2
go.mod
2
go.mod
|
|
@ -204,7 +204,7 @@ require (
|
||||||
github.com/wavefronthq/wavefront-sdk-go v0.15.0
|
github.com/wavefronthq/wavefront-sdk-go v0.15.0
|
||||||
github.com/x448/float16 v0.8.4
|
github.com/x448/float16 v0.8.4
|
||||||
github.com/xdg/scram v1.0.5
|
github.com/xdg/scram v1.0.5
|
||||||
github.com/yuin/goldmark v1.6.0
|
github.com/yuin/goldmark v1.7.8
|
||||||
go.mongodb.org/mongo-driver v1.17.0
|
go.mongodb.org/mongo-driver v1.17.0
|
||||||
go.opentelemetry.io/collector/pdata v1.12.0
|
go.opentelemetry.io/collector/pdata v1.12.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0
|
||||||
|
|
|
||||||
4
go.sum
4
go.sum
|
|
@ -2427,8 +2427,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1
|
||||||
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
|
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
|
||||||
github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
|
||||||
github.com/yuin/gopher-lua v0.0.0-20200603152657-dc2b0ca8b37e/go.mod h1:gqRgreBUhTSL0GeU64rtZ3Uq3wtjOa/TB2YfrtkCbVQ=
|
github.com/yuin/gopher-lua v0.0.0-20200603152657-dc2b0ca8b37e/go.mod h1:gqRgreBUhTSL0GeU64rtZ3Uq3wtjOa/TB2YfrtkCbVQ=
|
||||||
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da h1:NimzV1aGyq29m5ukMK0AMWEhFaL/lrEOaephfuoiARg=
|
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da h1:NimzV1aGyq29m5ukMK0AMWEhFaL/lrEOaephfuoiARg=
|
||||||
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da/go.mod h1:E1AXubJBdNmFERAOucpDIxNzeGfLzg0mYh+UfMWdChA=
|
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da/go.mod h1:E1AXubJBdNmFERAOucpDIxNzeGfLzg0mYh+UfMWdChA=
|
||||||
|
|
|
||||||
|
|
@ -139,9 +139,9 @@ func main() {
|
||||||
for lineElementNode := lineRoot.FirstChild().FirstChild(); lineElementNode != nil; lineElementNode = lineElementNode.NextSibling() {
|
for lineElementNode := lineRoot.FirstChild().FirstChild(); lineElementNode != nil; lineElementNode = lineElementNode.NextSibling() {
|
||||||
switch v := lineElementNode.(type) {
|
switch v := lineElementNode.(type) {
|
||||||
case *ast.Text:
|
case *ast.Text:
|
||||||
name += string(v.Text(line))
|
name += string(v.Value(line))
|
||||||
case *ast.Link:
|
case *ast.Link:
|
||||||
license = string(v.Text(line))
|
license = string(v.FirstChild().(*ast.Text).Value(line))
|
||||||
link = string(v.Destination)
|
link = string(v.Destination)
|
||||||
default:
|
default:
|
||||||
debugf("ignoring unknown element %T (%v)", v, v)
|
debugf("ignoring unknown element %T (%v)", v, v)
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ func main() {
|
||||||
if lines.Len() > 0 {
|
if lines.Len() > 0 {
|
||||||
stop = lines.At(lines.Len() - 1).Stop
|
stop = lines.At(lines.Len() - 1).Stop
|
||||||
}
|
}
|
||||||
txt = node.Info.Text(readme)
|
txt = node.Info.Value(readme)
|
||||||
re = tomlIncludesEx
|
re = tomlIncludesEx
|
||||||
case *ast.Heading:
|
case *ast.Heading:
|
||||||
if node.ChildCount() < 2 {
|
if node.ChildCount() < 2 {
|
||||||
|
|
@ -186,6 +186,7 @@ func main() {
|
||||||
if rawnode.Lines().Len() > 0 {
|
if rawnode.Lines().Len() > 0 {
|
||||||
stop = rawnode.Lines().At(0).Start - h.Level - 1
|
stop = rawnode.Lines().At(0).Start - h.Level - 1
|
||||||
} else {
|
} else {
|
||||||
|
//nolint:staticcheck // need to use this since we aren't sure the type
|
||||||
log.Printf("heading without lines: %s", string(rawnode.Text(readme)))
|
log.Printf("heading without lines: %s", string(rawnode.Text(readme)))
|
||||||
stop = start // safety measure to prevent removing all text
|
stop = start // safety measure to prevent removing all text
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ func (t *T) assertFirstChildRegexp(expectedPattern string, n ast.Node) {
|
||||||
}
|
}
|
||||||
c := n.FirstChild()
|
c := n.FirstChild()
|
||||||
|
|
||||||
|
//nolint:staticcheck // need to use this since we aren't sure the type
|
||||||
actual := string(c.Text(t.markdown))
|
actual := string(c.Text(t.markdown))
|
||||||
|
|
||||||
if !validRegexp.MatchString(actual) {
|
if !validRegexp.MatchString(actual) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ func firstSection(t *T, root ast.Node) error {
|
||||||
// Make sure there is some text after the heading
|
// Make sure there is some text after the heading
|
||||||
n = n.NextSibling()
|
n = n.NextSibling()
|
||||||
t.assertKind(ast.KindParagraph, n)
|
t.assertKind(ast.KindParagraph, n)
|
||||||
length := len(n.Text(t.markdown))
|
length := len(n.(*ast.Paragraph).Lines().Value(t.markdown))
|
||||||
if length < 30 {
|
if length < 30 {
|
||||||
t.assertNodef(n, "short first section. Please add short description of plugin. length %d, minimum 30", length)
|
t.assertNodef(n, "short first section. Please add short description of plugin. length %d, minimum 30", length)
|
||||||
}
|
}
|
||||||
|
|
@ -62,6 +62,7 @@ func requiredSections(t *T, root ast.Node, headings []string) error {
|
||||||
if child == nil {
|
if child == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
//nolint:staticcheck // need to use this since we aren't sure the type
|
||||||
title := strings.TrimSpace(string(child.Text(t.markdown)))
|
title := strings.TrimSpace(string(child.Text(t.markdown)))
|
||||||
if headingsSet.has(title) && h.Level != expectedLevel {
|
if headingsSet.has(title) && h.Level != expectedLevel {
|
||||||
t.assertNodef(n, "has required section %q but wrong heading level. Expected level %d, found %d",
|
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 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:staticcheck // need to use this since we aren't sure the type
|
||||||
title := string(h.FirstChild().Text(t.markdown))
|
title := string(h.FirstChild().Text(t.markdown))
|
||||||
if title == expectedTitle {
|
if title == expectedTitle {
|
||||||
config = h
|
config = h
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue