Repository: gohugoio/hugo (language: go)

Issue:
build(deps): bump github.com/rogpeppe/go-internal from 1.13.1 to 1.14.1
Bumps [github.com/rogpeppe/go-internal](https://github.com/rogpeppe/go-internal) from 1.13.1 to 1.14.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rogpeppe/go-internal/releases">github.com/rogpeppe/go-internal's releases</a>.</em></p>
<blockquote>
<h2>v1.14.1</h2>
<h2>What's Changed</h2>
<ul>
<li>testscript: remove temp dirs when finishing once again by <a href="https://github.com/mvdan"><code>@​mvdan</code></a> in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/290">rogpeppe/go-internal#290</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/rogpeppe/go-internal/compare/v1.14.0...v1.14.1">https://github.com/rogpeppe/go-internal/compare/v1.14.0...v1.14.1</a></p>
<h2>v1.14.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump Go dependencies by <a href="https://github.com/lucacome"><code>@​lucacome</code></a> in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/266">rogpeppe/go-internal#266</a></li>
<li>diff,misspell: fix typos in comments by <a href="https://github.com/alexandear"><code>@​alexandear</code></a> in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/282">rogpeppe/go-internal#282</a></li>
<li>testscript: phase out <code>func() int</code> in RunMain by <a href="https://github.com/mvdan"><code>@​mvdan</code></a> in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/281">rogpeppe/go-internal#281</a></li>
<li>add Go 1.24.x, drop 1.22.x by <a href="https://github.com/mvdan"><code>@​mvdan</code></a> in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/288">rogpeppe/go-internal#288</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/lucacome"><code>@​lucacome</code></a> made their first contribution in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/266">rogpeppe/go-internal#266</a></li>
<li><a href="https://github.com/alexandear"><code>@​alexandear</code></a> made their first contribution in <a href="https://redirect.github.com/rogpeppe/go-internal/pull/282">rogpeppe/go-internal#282</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/rogpeppe/go-internal/compare/v1.13.1...v1.14.0">https://github.com/rogpeppe/go-internal/compare/v1.13.1...v1.14.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rogpeppe/go-internal/commit/9ee3698d19c525c9cefe855433e5f6096b77c6f5"><code>9ee3698</code></a> testscript: remove temp dirs when finishing once again</li>
<li><a href="https://github.com/rogpeppe/go-internal/commit/eb182343bebe338dc881385c14d1a7d8c1e4422f"><code>eb18234</code></a> all: modernize -fix ./...</li>
<li><a href="https://github.com/rogpeppe/go-internal/commit/dd6dbb25bddce0b3475144fd32e51c08cc19a60a"><code>dd6dbb2</code></a> add Go 1.24.x, drop 1.22.x</li>
<li><a href="https://github.com/rogpeppe/go-internal/commit/a5dc8ff20d0a0cbdbe054b2bcc43f1a9d412da66"><code>a5dc8ff</code></a> testscript: phase out <code>func() int</code> in RunMain</li>
<li><a href="https://github.com/rogpeppe/go-internal/commit/f18544ac413f5cf3c9452e073535f83e0989d3db"><code>f18544a</code></a> diff,misspell: fix typos in comments (<a href="https://redirect.github.com/rogpeppe/go-internal/issues/282">#282</a>)</li>
<li><a href="https://github.com/rogpeppe/go-internal/commit/e71c4862218a6bf8fd719b444b5d492622af178e"><code>e71c486</code></a> Bump Go dependencies</li>
<li>See full diff in <a href="https://github.com/rogpeppe/go-internal/compare/v1.13.1...v1.14.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/rogpeppe/go-internal&package-manager=go_modules&previous-version=1.13.1&new-version=1.14.1)](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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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 9809f3c5a69..daabf78eb12 100644
--- a/go.mod
+++ b/go.mod
@@ -61,7 +61,7 @@ require (
 	github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
 	github.com/pelletier/go-toml/v2 v2.2.3
 	github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
-	github.com/rogpeppe/go-internal v1.13.1
+	github.com/rogpeppe/go-internal v1.14.1
 	github.com/sanity-io/litter v1.5.8
 	github.com/spf13/afero v1.11.0
 	github.com/spf13/cast v1.7.1
diff --git a/go.sum b/go.sum
index 564b2df46db..58947990101 100644
--- a/go.sum
+++ b/go.sum
@@ -420,6 +420,8 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
 github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
 github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
 github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
+github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
+github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
 github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
 github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd h1:CmH9+J6ZSsIjUK3dcGsnCnO41eRBOnY12zwkn5qVwgc=


Test patch:
diff --git a/main_test.go b/main_test.go
index 9dd2734d2de..683defb1ac4 100644
--- a/main_test.go
+++ b/main_test.go
@@ -56,19 +56,16 @@ func TestUnfinished(t *testing.T) {
 }
 
 func TestMain(m *testing.M) {
-	os.Exit(
-		testscript.RunMain(m, map[string]func() int{
-			// The main program.
-			"hugo": func() int {
-				err := commands.Execute(os.Args[1:])
-				if err != nil {
-					fmt.Fprintln(os.Stderr, err)
-					return 1
-				}
-				return 0
-			},
-		}),
-	)
+	testscript.Main(m, map[string]func(){
+		// The main program.
+		"hugo": func() {
+			err := commands.Execute(os.Args[1:])
+			if err != nil {
+				fmt.Fprintln(os.Stderr, err)
+				os.Exit(1)
+			}
+		},
+	})
 }
 
 var commonTestScriptsParam = testscript.Params{