From 76d695d8475bdfcd8d72558105ca0cb263bcfa3f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 08:10:11 +0000 Subject: [PATCH] [chore]: Bump github.com/yuin/goldmark from 1.7.1 to 1.7.2 (#3018) --- go.mod | 2 +- go.sum | 4 +- .../KimMachineGun/automemlimit/.gitignore | 15 ----- .../KimMachineGun/automemlimit/README.md | 65 ------------------- .../automemlimit/automemlimit.go | 13 ---- .../yuin/goldmark/extension/strikethrough.go | 5 +- .../yuin/goldmark/extension/table.go | 6 +- .../yuin/goldmark/renderer/html/html.go | 2 +- vendor/modules.txt | 3 +- 9 files changed, 11 insertions(+), 104 deletions(-) delete mode 100644 vendor/github.com/KimMachineGun/automemlimit/.gitignore delete mode 100644 vendor/github.com/KimMachineGun/automemlimit/README.md delete mode 100644 vendor/github.com/KimMachineGun/automemlimit/automemlimit.go diff --git a/go.mod b/go.mod index 149a88117..2040618c1 100644 --- a/go.mod +++ b/go.mod @@ -62,7 +62,7 @@ require ( github.com/uptrace/bun/dialect/sqlitedialect v1.2.1 github.com/uptrace/bun/extra/bunotel v1.2.1 github.com/wagslane/go-password-validator v0.3.0 - github.com/yuin/goldmark v1.7.1 + github.com/yuin/goldmark v1.7.2 go.opentelemetry.io/otel v1.26.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.26.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 diff --git a/go.sum b/go.sum index df382c545..29fa97bdc 100644 --- a/go.sum +++ b/go.sum @@ -635,8 +635,8 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= -github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark v1.7.2 h1:NjGd7lO7zrUn/A7eKwn5PEOt4ONYGqpxSEeZuduvgxc= +github.com/yuin/goldmark v1.7.2/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= gitlab.com/NyaaaWhatsUpDoc/sqlite v1.29.9-concurrency-workaround h1:gFAlklid3jyXIuZBy5Vy0dhG+F6YBgosRy4syT5CDsg= gitlab.com/NyaaaWhatsUpDoc/sqlite v1.29.9-concurrency-workaround/go.mod h1:ItX2a1OVGgNsFh6Dv60JQvGfJfTPHPVpV6DF59akYOA= go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80= diff --git a/vendor/github.com/KimMachineGun/automemlimit/.gitignore b/vendor/github.com/KimMachineGun/automemlimit/.gitignore deleted file mode 100644 index 66fd13c90..000000000 --- a/vendor/github.com/KimMachineGun/automemlimit/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib - -# Test binary, built with `go test -c` -*.test - -# Output of the go coverage tool, specifically when used with LiteIDE -*.out - -# Dependency directories (remove the comment below to include it) -# vendor/ diff --git a/vendor/github.com/KimMachineGun/automemlimit/README.md b/vendor/github.com/KimMachineGun/automemlimit/README.md deleted file mode 100644 index fa6c628f1..000000000 --- a/vendor/github.com/KimMachineGun/automemlimit/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# automemlimit - -[![Go Reference](https://pkg.go.dev/badge/github.com/KimMachineGun/automemlimit.svg)](https://pkg.go.dev/github.com/KimMachineGun/automemlimit) -[![Go Report Card](https://goreportcard.com/badge/github.com/KimMachineGun/automemlimit)](https://goreportcard.com/report/github.com/KimMachineGun/automemlimit) -[![Test](https://github.com/KimMachineGun/automemlimit/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/KimMachineGun/automemlimit/actions/workflows/test.yml) - -Automatically set `GOMEMLIMIT` to match Linux [cgroups(7)](https://man7.org/linux/man-pages/man7/cgroups.7.html) memory limit. - -See more details about `GOMEMLIMIT` [here](https://tip.golang.org/doc/gc-guide#Memory_limit). - -## Notice - -Version `v0.5.0` introduces a fallback to system memory limits as an experimental feature when cgroup limits are unavailable. Activate this by setting `AUTOMEMLIMIT_EXPERIMENT=system`. -You can also use system memory limits via `memlimit.FromSystem` provider directly. - -This feature is under evaluation and might become a default or be removed based on user feedback. -If you have any feedback about this feature, please open an issue. - -## Installation - -```shell -go get github.com/KimMachineGun/automemlimit@latest -``` - -## Usage - -```go -package main - -// By default, it sets `GOMEMLIMIT` to 90% of cgroup's memory limit. -// This is equivalent to `memlimit.SetGoMemLimitWithOpts(memlimit.WithLogger(slog.Default()))` -// To disable logging, use `memlimit.SetGoMemLimitWithOpts` directly. -import _ "github.com/KimMachineGun/automemlimit" -``` - -or - -```go -package main - -import "github.com/KimMachineGun/automemlimit/memlimit" - -func init() { - memlimit.SetGoMemLimitWithOpts( - memlimit.WithRatio(0.9), - memlimit.WithProvider(memlimit.FromCgroup), - memlimit.WithLogger(slog.Default()), - ) - memlimit.SetGoMemLimitWithOpts( - memlimit.WithRatio(0.9), - memlimit.WithProvider( - memlimit.ApplyFallback( - memlimit.FromCgroup, - memlimit.FromSystem, - ), - ), - ) - memlimit.SetGoMemLimit(0.9) - memlimit.SetGoMemLimitWithProvider(memlimit.Limit(1024*1024), 0.9) - memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroup, 0.9) - memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupV1, 0.9) - memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupHybrid, 0.9) - memlimit.SetGoMemLimitWithProvider(memlimit.FromCgroupV2, 0.9) -} -``` diff --git a/vendor/github.com/KimMachineGun/automemlimit/automemlimit.go b/vendor/github.com/KimMachineGun/automemlimit/automemlimit.go deleted file mode 100644 index 878312d60..000000000 --- a/vendor/github.com/KimMachineGun/automemlimit/automemlimit.go +++ /dev/null @@ -1,13 +0,0 @@ -package automemlimit - -import ( - "log/slog" - - "github.com/KimMachineGun/automemlimit/memlimit" -) - -func init() { - memlimit.SetGoMemLimitWithOpts( - memlimit.WithLogger(slog.Default()), - ) -} diff --git a/vendor/github.com/yuin/goldmark/extension/strikethrough.go b/vendor/github.com/yuin/goldmark/extension/strikethrough.go index 7d1356938..9fc0becfd 100644 --- a/vendor/github.com/yuin/goldmark/extension/strikethrough.go +++ b/vendor/github.com/yuin/goldmark/extension/strikethrough.go @@ -46,10 +46,11 @@ func (s *strikethroughParser) Trigger() []byte { func (s *strikethroughParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node { before := block.PrecendingCharacter() line, segment := block.PeekLine() - node := parser.ScanDelimiter(line, before, 2, defaultStrikethroughDelimiterProcessor) - if node == nil { + node := parser.ScanDelimiter(line, before, 1, defaultStrikethroughDelimiterProcessor) + if node == nil || node.OriginalLength > 2 || before == '~' { return nil } + node.Segment = segment.WithStop(segment.Start + node.OriginalLength) block.Advance(node.OriginalLength) pc.PushDelimiter(node) diff --git a/vendor/github.com/yuin/goldmark/extension/table.go b/vendor/github.com/yuin/goldmark/extension/table.go index 2fe7a5101..617c7a302 100644 --- a/vendor/github.com/yuin/goldmark/extension/table.go +++ b/vendor/github.com/yuin/goldmark/extension/table.go @@ -492,7 +492,7 @@ func (r *TableHTMLRenderer) renderTableCell( tag = "th" } if entering { - fmt.Fprintf(w, "<%s", tag) + _, _ = fmt.Fprintf(w, "<%s", tag) if n.Alignment != ast.AlignNone { amethod := r.TableConfig.TableCellAlignMethod if amethod == TableCellAlignDefault { @@ -505,7 +505,7 @@ func (r *TableHTMLRenderer) renderTableCell( switch amethod { case TableCellAlignAttribute: if _, ok := n.AttributeString("align"); !ok { // Skip align render if overridden - fmt.Fprintf(w, ` align="%s"`, n.Alignment.String()) + _, _ = fmt.Fprintf(w, ` align="%s"`, n.Alignment.String()) } case TableCellAlignStyle: v, ok := n.AttributeString("style") @@ -528,7 +528,7 @@ func (r *TableHTMLRenderer) renderTableCell( } _ = w.WriteByte('>') } else { - fmt.Fprintf(w, "\n", tag) + _, _ = fmt.Fprintf(w, "\n", tag) } return gast.WalkContinue, nil } diff --git a/vendor/github.com/yuin/goldmark/renderer/html/html.go b/vendor/github.com/yuin/goldmark/renderer/html/html.go index 75ac6dbfa..b1da368e0 100644 --- a/vendor/github.com/yuin/goldmark/renderer/html/html.go +++ b/vendor/github.com/yuin/goldmark/renderer/html/html.go @@ -445,7 +445,7 @@ func (r *Renderer) renderList(w util.BufWriter, source []byte, node ast.Node, en _ = w.WriteByte('<') _, _ = w.WriteString(tag) if n.IsOrdered() && n.Start != 1 { - fmt.Fprintf(w, " start=\"%d\"", n.Start) + _, _ = fmt.Fprintf(w, " start=\"%d\"", n.Start) } if n.Attributes() != nil { RenderAttributes(w, n, ListAttributeFilter) diff --git a/vendor/modules.txt b/vendor/modules.txt index 201dcdd5c..4ab97ff86 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -79,7 +79,6 @@ codeberg.org/superseriousbusiness/exif-terminator github.com/DmitriyVTitov/size # github.com/KimMachineGun/automemlimit v0.6.1 ## explicit; go 1.21 -github.com/KimMachineGun/automemlimit github.com/KimMachineGun/automemlimit/memlimit # github.com/Masterminds/goutils v1.1.1 ## explicit @@ -940,7 +939,7 @@ github.com/vmihailenco/tagparser/v2/internal/parser # github.com/wagslane/go-password-validator v0.3.0 ## explicit; go 1.16 github.com/wagslane/go-password-validator -# github.com/yuin/goldmark v1.7.1 +# github.com/yuin/goldmark v1.7.2 ## explicit; go 1.19 github.com/yuin/goldmark github.com/yuin/goldmark/ast