Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit277b2d2

Browse files
chore: bump github.com/gohugoio/hugo from 0.151.2 to 0.152.2 (#20495)
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo) from0.151.2 to 0.152.2.<details><summary>Release notes</summary><p><em>Sourced from <ahref="https://github.com/gohugoio/hugo/releases">github.com/gohugoio/hugo'sreleases</a>.</em></p><blockquote><h2>v0.152.2</h2><p>In <code>v0.152.0</code> we tightened the source validation for <ahref="https://gohugo.io/configuration/module/#mounts">file mounts</a>.We always said that <em>project mounts can mount with absolutefile/directorynames, modules/themes are restricted to relative</em>. In<code>v0.152.0</code> we narrowed module/themes mounts to be local,which made the setup in the bug report listed below fail:</p><pre lang="toml"><code>[[module.mounts]]source = '../../node_modules/bootstrap'target = 'assets/vendor/bootstrap'</code></pre><p>One part of this is security. But the construct above is<em>usually</em> very odd (the project uses files in a theme/module, notthe other way around) and not very portable. But the example abovedemonstrates a valid exception, that we now have added support for in aportable way. The above example now works as it did before<code>v0.152.0</code>, but going forward you can also write:</p><pre lang="toml"><code>[[module.mounts]]source = 'node_modules/bootstrap'target = 'assets/vendor/bootstrap'</code></pre><p>We now have the <code>node_modules</code> as a special case: Forthemes/modules we first check if the mounted source exists locally, ifnot we try relative to the project root.</p><h2>What's Changed</h2><ul><li>deps: Update github.com/tdewolff/minify v2.24.4 =&gt; v2.24.51c8c21e45 <ahref="https://github.com/jmooring"><code>@​jmooring</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14086">#14086</a></li><li>hugofs: Make node_modules a &quot;special case&quot; mount 809ebe01f<a href="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14089">#14089</a></li><li>github: Fix typo in stale PR message 08a0679a8 <ahref="https://github.com/jordelver"><code>@​jordelver</code></a></li></ul><h2>v0.152.1</h2><p>These fixes are are all related to the YAML library upgrade in <ahref="https://github.com/gohugoio/hugo/releases/tag/v0.152.0">v0.152.0</a>.</p><ul><li>Expand the numeric conversions to template funcs/methods e08278d16<a href="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14079">#14079</a></li><li>Fix where with uint64 df4f80d54 <ahref="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14081">#14081</a></li><li>Fix it so YAML integer types can be used where Go int types areexpected d4c78885a <ahref="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14079">#14079</a></li><li>tpl/compare: Fix compare/sort of uint64s 29e2c2fa9 <ahref="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/14078">#14078</a></li><li>Fix &quot;assignment to entry in nil map&quot; on empty YAML configfiles 0579afc3c <a href="https://github.com/bep"><code>@​bep</code></a><ahref="https://redirect.github.com/gohugoio/hugo/issues/14074">#14074</a></li></ul><h2>v0.152.0</h2><p>The big new thing and the motivation behind this release is theupgrade to a more modern YAML library in <ahref="https://github.com/goccy"><code>@​goccy</code></a> 's <ahref="https://github.com/goccy/go-yaml">github.com/goccy/go-yaml</a>.It's been a surprisingly long and winding road to get here. <strong>Notethat this upgrade comes with some minor breaking changes, most notablythat the old YAML 1.1 spec listed a set of strings that, when unquoted,were treated as boolean <code>true</code> or<code>false</code>.</strong> So if you're using any of the values in thetable below as booleans, you need to adjust your YAML, but I suspectthat fixing this very surprising behavior will fix more issues than itintroduces. A big new thing with this new YAML library is the supportfor <ahref="https://www.linode.com/docs/guides/yaml-anchors-aliases-overrides-extensions/">YAMLanchors and aliases</a> which helps to reduce duplication in e.g. yourconfiguration. There are some examples in Hugo's <ahref="https://github.com/gohugoio/hugo/blob/master/hugoreleaser.yaml">releasebuild configuration</a> and in the <ahref="https://github.com/gohugoio/hugo/blob/master/.circleci/config.yml">Hugo'sCI release setup</a>.</p><table><thead><tr><th align="left">Values</th><th align="left">Old meaning</th><th align="left">New meaning</th></tr></thead><tbody><tr><td align="left"><code>yes</code>, <code>Yes</code>, <code>YES</code>,<code>y</code>, <code>Y</code>, <code>on</code>, <code>On</code>,<code>ON</code></td><td align="left"><code>true</code> (bool)</td><td align="left"><code>yes</code>, <code>Yes</code>, <code>YES</code>,<code>y</code>, <code>Y</code>, <code>on</code>, <code>On</code>,<code>ON</code> (string)</td></tr><tr><td align="left"><code>no</code>, <code>No</code>, <code>NO</code>,<code>n</code>, <code>N</code>, <code>off</code>, <code>Off</code>,<code>OFF</code></td><td align="left"><code>false</code> (bool)</td><td align="left"><code>no</code>, <code>No</code>, <code>NO</code>,<code>n</code>, <code>N</code>, <code>off</code>, <code>Off</code>,<code>OFF</code> (string)</td></tr></tbody></table><h2>Note</h2><ul><li>Replace to gopkg.in/yaml with github.com/goccy/go-yaml (note)a3d954846 <a href="https://github.com/bep"><code>@​bep</code></a> <ahref="https://redirect.github.com/gohugoio/hugo/issues/8822">#8822</a><ahref="https://redirect.github.com/gohugoio/hugo/issues/13043">#13043</a><ahref="https://redirect.github.com/gohugoio/hugo/issues/14053">#14053</a></li></ul><!-- raw HTML omitted --></blockquote><p>... (truncated)</p></details><details><summary>Commits</summary><ul><li><ahref="https://github.com/gohugoio/hugo/commit/6abdacad3f3fe944ea42177844469139e81feda6"><code>6abdaca</code></a>releaser: Bump versions for release of 0.152.2</li><li><ahref="https://github.com/gohugoio/hugo/commit/1c8c21e45eb7d87c1038b3f3b9ea87b82a11c867"><code>1c8c21e</code></a>deps: Update github.com/tdewolff/minify v2.24.4 =&gt; v2.24.5</li><li><ahref="https://github.com/gohugoio/hugo/commit/809ebe01fa954a44a48c265f0c9a4e4845b9a0f8"><code>809ebe0</code></a>hugofs: Make node_modules a &quot;special case&quot; mount</li><li><ahref="https://github.com/gohugoio/hugo/commit/08a0679a895678b38f1324ae78503fd32ec22996"><code>08a0679</code></a>github: Fix typo in stale PR message</li><li><ahref="https://github.com/gohugoio/hugo/commit/524b98665b64f206f14879ffe29c64f413592a2f"><code>524b986</code></a>releaser: Prepare repository for 0.153.0-DEV</li><li><ahref="https://github.com/gohugoio/hugo/commit/5869cbddd88590563c2b7b400e804ccc7d2cb697"><code>5869cbd</code></a>releaser: Bump versions for release of 0.152.1</li><li><ahref="https://github.com/gohugoio/hugo/commit/e08278d165399bd2d7d7331d966129a2faa268b2"><code>e08278d</code></a>Expand the numeric conversions to template funcs/methods</li><li><ahref="https://github.com/gohugoio/hugo/commit/df4f80d54f389407d935a0388707be2bf888d882"><code>df4f80d</code></a>Fix where with uint64</li><li><ahref="https://github.com/gohugoio/hugo/commit/d4c78885ae4cb7c488ea2ed399aa57f0861f44cb"><code>d4c7888</code></a>Fix it so YAML integer types can be used where Go int types areexpected</li><li><ahref="https://github.com/gohugoio/hugo/commit/29e2c2fa92b10c1250376913558448e838e390fe"><code>29e2c2f</code></a>tpl/compare: Fix compare/sort of uint64s</li><li>Additional commits viewable in <ahref="https://github.com/gohugoio/hugo/compare/v0.151.2...v0.152.2">compareview</a></li></ul></details><br />[![Dependabot compatibilityscore](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gohugoio/hugo&package-manager=go_modules&previous-version=0.151.2&new-version=0.152.2)](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'talter 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 editsthat 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 afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore this major version` will close this PR and stopDependabot creating any more for this major version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this minor version` will close this PR and stopDependabot creating any more for this minor version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this dependency` will close this PR and stopDependabot creating any more for this dependency (unless you reopen thePR or upgrade to it yourself)</details>Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parentaf3ff82 commit277b2d2

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

‎go.mod‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ require (
127127
github.com/go-logr/logrv1.4.3
128128
github.com/go-playground/validator/v10v10.28.0
129129
github.com/gofrs/flockv0.13.0
130-
github.com/gohugoio/hugov0.151.2
130+
github.com/gohugoio/hugov0.152.2
131131
github.com/golang-jwt/jwt/v4v4.5.2
132132
github.com/golang-migrate/migrate/v4v4.19.0
133133
github.com/gomarkdown/markdownv0.0.0-20240930133441-72d49d9543d8
@@ -411,7 +411,7 @@ require (
411411
github.com/tailscale/wireguard-gov0.0.0-20231121184858-cc193a0b3272
412412
github.com/tchap/go-patricia/v2v2.3.2// indirect
413413
github.com/tcnksm/go-httpstatv0.2.0// indirect
414-
github.com/tdewolff/parse/v2v2.8.3// indirect
414+
github.com/tdewolff/parse/v2v2.8.5-0.20251020133559-0efcf90bef1a// indirect
415415
github.com/tidwall/matchv1.2.0// indirect
416416
github.com/tidwall/prettyv1.2.1// indirect
417417
github.com/tinylib/msgpv1.2.5// indirect
@@ -455,7 +455,6 @@ require (
455455
google.golang.org/genproto/googleapis/apiv0.0.0-20250804133106-a7a43d27e69b// indirect
456456
google.golang.org/genproto/googleapis/rpcv0.0.0-20251002232023-7c0ddcbb5797// indirect
457457
gopkg.in/ini.v1v1.67.0// indirect
458-
gopkg.in/yaml.v2v2.4.0// indirect
459458
howett.net/plistv1.0.0// indirect
460459
kernel.org/pub/linux/libs/security/libcap/psxv1.2.73// indirect
461460
sigs.k8s.io/yamlv1.5.0// indirect
@@ -522,6 +521,7 @@ require (
522521
github.com/go-git/gcfgv1.5.1-0.20230307220236-3a3c6141e376// indirect
523522
github.com/go-git/go-billy/v5v5.6.2// indirect
524523
github.com/go-sql-driver/mysqlv1.9.3// indirect
524+
github.com/goccy/go-yamlv1.18.0// indirect
525525
github.com/google/go-containerregistryv0.20.6// indirect
526526
github.com/gorilla/websocketv1.5.4-0.20250319132907-e064f32e3674// indirect
527527
github.com/hashicorp/go-getterv1.7.9// indirect

‎go.sum‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,6 @@ github.com/gen2brain/beeep v0.11.1 h1:EbSIhrQZFDj1K2fzlMpAYlFOzV8YuNe721A58XcCTY
11041104
github.com/gen2brain/beeepv0.11.1/go.mod h1:jQVvuwnLuwOcdctHn/uyh8horSBNJ8uGb9Cn2W4tvoc=
11051105
github.com/getkin/kin-openapiv0.133.0 h1:pJdmNohVIJ97r4AUFtEXRXwESr8b0bD721u/Tz6k8PQ=
11061106
github.com/getkin/kin-openapiv0.133.0/go.mod h1:boAciF6cXk5FhPqe/NQeBTeenbjqU4LhWBf09ILVvWE=
1107-
github.com/ghodss/yamlv1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
11081107
github.com/ghodss/yamlv1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
11091108
github.com/github/fakecav0.1.0 h1:Km/MVOFvclqxPM9dZBC4+QE564nU4gz4iZ0D9pMw28I=
11101109
github.com/github/fakecav0.1.0/go.mod h1:+bormgoGMMuamOscx7N91aOuUST7wdaJ2rNjeohylyo=
@@ -1189,6 +1188,8 @@ github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm
11891188
github.com/gobwas/wsv1.4.0 h1:CTaoG1tojrh4ucGPcoJFiAQUAsEWekEWvLy7GsVNqGs=
11901189
github.com/gobwas/wsv1.4.0/go.mod h1:G3gNqMNtPppf5XUz7O4shetPpcZ1VJ7zt18dlUeakrc=
11911190
github.com/goccy/go-jsonv0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
1191+
github.com/goccy/go-yamlv1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw=
1192+
github.com/goccy/go-yamlv1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
11921193
github.com/godbus/dbus/v5v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
11931194
github.com/godbus/dbus/v5v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
11941195
github.com/gofrs/flockv0.13.0 h1:95JolYOvGMqeH31+FC7D2+uULf6mG61mEZ/A8dRYMzw=
@@ -1197,14 +1198,14 @@ github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1
11971198
github.com/gofrs/uuidv4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
11981199
github.com/gogo/protobufv1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
11991200
github.com/gogo/protobufv1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
1200-
github.com/gohugoio/go-i18n/v2v2.1.3-0.20230805085216-e63c13218d0e h1:QArsSubW7eDh8APMXkByjQWvuljwPGAGQpJEFn0F0wY=
1201-
github.com/gohugoio/go-i18n/v2v2.1.3-0.20230805085216-e63c13218d0e/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
1201+
github.com/gohugoio/go-i18n/v2v2.1.3-0.20251018145728-cfcc22d823c6 h1:pxlAea9eRwuAnt/zKbGqlFO2ZszpIe24YpOVLf+N+4I=
1202+
github.com/gohugoio/go-i18n/v2v2.1.3-0.20251018145728-cfcc22d823c6/go.mod h1:m5hu1im5Qc7LDycVLvee6MPobJiRLBYHklypFJR0/aE=
12021203
github.com/gohugoio/hashstructurev0.6.0 h1:7wMB/2CfXoThFYhdWRGv3u3rUM761Cq29CxUW+NltUg=
12031204
github.com/gohugoio/hashstructurev0.6.0/go.mod h1:lapVLk9XidheHG1IQ4ZSbyYrXcaILU1ZEP/+vno5rBQ=
12041205
github.com/gohugoio/httpcachev0.8.0 h1:hNdsmGSELztetYCsPVgjA960zSa4dfEqqF/SficorCU=
12051206
github.com/gohugoio/httpcachev0.8.0/go.mod h1:fMlPrdY/vVJhAriLZnrF5QpN3BNAcoBClgAyQd+lGFI=
1206-
github.com/gohugoio/hugov0.151.2 h1:HZ5V/oQnldrffqEAkUsnd6bgq8ZtEOzF0xox2+zuT3k=
1207-
github.com/gohugoio/hugov0.151.2/go.mod h1:7QPFu7oOioiXlmy9hfgnhCg3LixGXthnZQmmBUdjs/4=
1207+
github.com/gohugoio/hugov0.152.2 h1:k++AvrUCjFbq8lzzKRG5JizSwsBT/ARg6mMUXFDC5OA=
1208+
github.com/gohugoio/hugov0.152.2/go.mod h1:eGE2cUADtMLFnb66WSlMJSNXXFrU6lLiYgDSP6H/Fm0=
12081209
github.com/gohugoio/hugo-goldmark-extensions/extrasv0.5.0 h1:dco+7YiOryRoPOMXwwaf+kktZSCtlFtreNdiJbETvYE=
12091210
github.com/gohugoio/hugo-goldmark-extensions/extrasv0.5.0/go.mod h1:CRrxQTKeM3imw+UoS4EHKyrqB7Zp6sAJiqHit+aMGTE=
12101211
github.com/gohugoio/hugo-goldmark-extensions/passthroughv0.3.1 h1:nUzXfRTszLliZuN0JTKeunXTRaiFX6ksaWP0puLLYAY=
@@ -1826,10 +1827,10 @@ github.com/tc-hib/winres v0.2.1 h1:YDE0FiP0VmtRaDn7+aaChp1KiF4owBiJa5l964l5ujA=
18261827
github.com/tc-hib/winresv0.2.1/go.mod h1:C/JaNhH3KBvhNKVbvdlDWkbMDO9H4fKKDaN7/07SSuk=
18271828
github.com/tchap/go-patricia/v2v2.3.2 h1:xTHFutuitO2zqKAQ5rCROYgUb7Or/+IC3fts9/Yc7nM=
18281829
github.com/tchap/go-patricia/v2v2.3.2/go.mod h1:VZRHKAb53DLaG+nA9EaYYiaEx6YztwDlLElMsnSHD4k=
1829-
github.com/tdewolff/minify/v2v2.24.3 h1:BaKgWSFLKbKDiUskbeRgbe2n5d1Ci1x3cN/eXna8zOA=
1830-
github.com/tdewolff/minify/v2v2.24.3/go.mod h1:1JrCtoZXaDbqioQZfk3Jdmr0GPJKiU7c1Apmb+7tCeE=
1831-
github.com/tdewolff/parse/v2v2.8.3 h1:5VbvtJ83cfb289A1HzRA9sf02iT8YyUwN84ezjkdY1I=
1832-
github.com/tdewolff/parse/v2v2.8.3/go.mod h1:Hwlni2tiVNKyzR1o6nUs4FOF07URA+JLBLd6dlIXYqo=
1830+
github.com/tdewolff/minify/v2v2.24.5 h1:ytxthX3xSxrK3Xx5B38flg5moCKs/dB8VwiD/RzJViU=
1831+
github.com/tdewolff/minify/v2v2.24.5/go.mod h1:q09KtNnVai7TyEzGEZeWPAnK+c8Z+NI8prCXZW652bo=
1832+
github.com/tdewolff/parse/v2v2.8.5-0.20251020133559-0efcf90bef1a h1:Rmq+utdraciok/97XHRweYdsAo/M4LOswpCboo3yvN4=
1833+
github.com/tdewolff/parse/v2v2.8.5-0.20251020133559-0efcf90bef1a/go.mod h1:Hwlni2tiVNKyzR1o6nUs4FOF07URA+JLBLd6dlIXYqo=
18331834
github.com/tdewolff/testv1.0.11 h1:FdLbwQVHxqG16SlkGveC0JVyrJN62COWTRyUFzfbtBE=
18341835
github.com/tdewolff/testv1.0.11/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8=
18351836
github.com/testcontainers/testcontainers-gov0.38.0 h1:d7uEapLcv2P8AvH8ahLqDMMxda2W9gQN1nRbHS28HBw=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp