Repository: gohugoio/hugo (language: go)

Issue:
build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.4
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.2 to 2.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pelletier/go-toml/releases">github.com/pelletier/go-toml/v2's releases</a>.</em></p>
<blockquote>
<h2>v2.0.4</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Fixed bugs</h3>
<ul>
<li>Decode: don't crash on embedded nil pointers by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/808">pelletier/go-toml#808</a></li>
<li>Add back missing build tag needed for Go 1.16 and earlier by <a href="https://github.com/piotrbulinski"><code>@​piotrbulinski</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/809">pelletier/go-toml#809</a></li>
<li>Decode: don't break on non-struct embed field by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/810">pelletier/go-toml#810</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/piotrbulinski"><code>@​piotrbulinski</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/809">pelletier/go-toml#809</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/pelletier/go-toml/compare/v2.0.3...v2.0.4">https://github.com/pelletier/go-toml/compare/v2.0.3...v2.0.4</a></p>
<h2>v2.0.3</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Fixed bugs</h3>
<ul>
<li>Encode: define and fix newlines behavior when using omitempty  by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/798">pelletier/go-toml#798</a></li>
<li>Encode: don't inherit omitempty by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/803">pelletier/go-toml#803</a></li>
<li>Decode: error on array table mismatched type by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/804">pelletier/go-toml#804</a></li>
</ul>
<h3>Other changes</h3>
<ul>
<li>build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.8.0 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/793">pelletier/go-toml#793</a> <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/794">pelletier/go-toml#794</a> <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/795">pelletier/go-toml#795</a></li>
<li>Go 1.19 by <a href="https://github.com/pelletier"><code>@​pelletier</code></a> in <a href="https://github-redirect.dependabot.com/pelletier/go-toml/pull/802">pelletier/go-toml#802</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/pelletier/go-toml/compare/v2.0.2...v2.0.3">https://github.com/pelletier/go-toml/compare/v2.0.2...v2.0.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pelletier/go-toml/commit/28f1efc7d3aac3247b915ecf6ebb3e2651705514"><code>28f1efc</code></a> Decode: don't break on non-struct embed field (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/810">#810</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/7d69e4a72863b50ad6d9c6b885dd26f9afa9dd26"><code>7d69e4a</code></a> Add missing '+build' comment to fuzz_test.go (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/809">#809</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/e46d245c090232c37469a70ca74b6dd8dbc47f16"><code>e46d245</code></a> Decode: don't crash on embedded nil pointers (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/808">#808</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/7baa23f493a82b3f24f4dada5d0b02d17fbde175"><code>7baa23f</code></a> Decode: error on array table mismatched type (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/804">#804</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/2d8433b69ed215767c71b69742838689d1bfe2c1"><code>2d8433b</code></a> Encode: don't inherit omitempty (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/803">#803</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/67bc5422f383da67a22dd58f88cd9bf4af06b8d2"><code>67bc542</code></a> Go 1.19 (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/802">#802</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/fb6d1d6c2b875870f1325c27bbaff501ba1e0893"><code>fb6d1d6</code></a> Marshal: define and fix newlines behavior when using omitempty  (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/798">#798</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/d017a6dc89dc4008d6d89075fc3e63a4ae65a6c4"><code>d017a6d</code></a> build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/795">#795</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/d6d3196163f2423bdfab93ed830f274f38bf6c92"><code>d6d3196</code></a> build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/794">#794</a>)</li>
<li><a href="https://github.com/pelletier/go-toml/commit/41718a6db3baee75e60144777085d8e6fb4c2cc7"><code>41718a6</code></a> build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (<a href="https://github-redirect.dependabot.com/pelletier/go-toml/issues/793">#793</a>)</li>
<li>See full diff in <a href="https://github.com/pelletier/go-toml/compare/v2.0.2...v2.0.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/pelletier/go-toml/v2&package-manager=go_modules&previous-version=2.0.2&new-version=2.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Discussion / hints:

Fix patch:
diff --git a/go.mod b/go.mod
index aaef5439a48..1242f384d8b 100644
--- a/go.mod
+++ b/go.mod
@@ -44,7 +44,7 @@ require (
 	github.com/muesli/smartcrop v0.3.0
 	github.com/niklasfasching/go-org v1.6.5
 	github.com/olekukonko/tablewriter v0.0.5
-	github.com/pelletier/go-toml/v2 v2.0.2
+	github.com/pelletier/go-toml/v2 v2.0.4
 	github.com/rogpeppe/go-internal v1.9.0
 	github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
 	github.com/sanity-io/litter v1.5.5
diff --git a/go.sum b/go.sum
index 88d7be5bfb3..0dcc0cc996b 100644
--- a/go.sum
+++ b/go.sum
@@ -467,6 +467,8 @@ github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N
 github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
 github.com/pelletier/go-toml/v2 v2.0.2 h1:+jQXlF3scKIcSEKkdHzXhCTDLPFi5r1wnK6yPS+49Gw=
 github.com/pelletier/go-toml/v2 v2.0.2/go.mod h1:MovirKjgVRESsAvNZlAjtFwV867yGuwRkXbG66OzopI=
+github.com/pelletier/go-toml/v2 v2.0.4 h1:MHHO+ZUPwPZQ6BmnnT81iQg5cuurp78CRH7rNsguSMk=
+github.com/pelletier/go-toml/v2 v2.0.4/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas=
 github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
 github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@@ -503,6 +505,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
 github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
 github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
 github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
 github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
 github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
@@ -510,8 +513,10 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
 github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
 github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
 github.com/tdewolff/minify/v2 v2.12.0 h1:ZyvMKeciyR3vzJrK/oHyBcSmpttQ/V+ah7qOqTZclaU=
 github.com/tdewolff/minify/v2 v2.12.0/go.mod h1:8mvf+KglD7XurfvvFZDUYvVURy6bA/r0oTvmakXMnyg=
 github.com/tdewolff/parse/v2 v2.6.1/go.mod h1:WzaJpRSbwq++EIQHYIRTpbYKNA3gn9it1Ik++q4zyho=


Test patch:
diff --git a/config/security/securityonfig_test.go b/config/security/securityonfig_test.go
index d0416a20df3..24190a57ff7 100644
--- a/config/security/securityonfig_test.go
+++ b/config/security/securityonfig_test.go
@@ -140,7 +140,7 @@ func TestToTOML(t *testing.T) {
 	got := DefaultConfig.ToTOML()
 
 	c.Assert(got, qt.Equals,
-		"[security]\n  enableInlineShortcodes = false\n  [security.exec]\n    allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']\n    osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']\n\n  [security.funcs]\n    getenv = ['^HUGO_']\n\n  [security.http]\n    methods = ['(?i)GET|POST']\n    urls = ['.*']",
+		"[security]\n  enableInlineShortcodes = false\n\n  [security.exec]\n    allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']\n    osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']\n\n  [security.funcs]\n    getenv = ['^HUGO_']\n\n  [security.http]\n    methods = ['(?i)GET|POST']\n    urls = ['.*']",
 	)
 }
 
diff --git a/tpl/transform/remarshal_test.go b/tpl/transform/remarshal_test.go
index 5262db5917c..9af6d91e9cd 100644
--- a/tpl/transform/remarshal_test.go
+++ b/tpl/transform/remarshal_test.go
@@ -180,7 +180,7 @@ a = "b"
 
 		converted, err := ns.Remarshal("toml", input)
 		c.Assert(err, qt.IsNil)
-		c.Assert(converted, qt.Equals, "[params]\n  [params.variables]\n    a = 'b'\n\n\n")
+		c.Assert(converted, qt.Equals, "[params]\n  [params.variables]\n    a = 'b'\n")
 	})
 
 	c.Run("Map input", func(c *qt.C) {