chore(deps): update dependency hugo to v0.159.0#3779
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency hugo to v0.159.0#3779renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
d3431f9 to
b2ef1ea
Compare
2958e6e to
142c675
Compare
b4e98ea to
5c9636a
Compare
dockerfiles/ocw/node-hugo/Dockerfile
Outdated
|
|
||
| # renovate: datasource=github-releases depName=hugo packageName=gohugoio/hugo | ||
| ENV HUGO_VERSION="0.142.0" | ||
| ENV HUGO_VERSION="0.157.0" |
There was a problem hiding this comment.
Bug: The Dockerfile constructs an incorrect URL for the Hugo release artifact, which will cause the image build to fail due to a 404 error during download.
Severity: HIGH
Suggested Fix
Update the HUGO_NAME and HUGO_URL environment variables to match the correct naming convention for Hugo release artifacts. This involves removing _extended_ from the name and changing the file extension from .deb to .tar.gz. The installation process will also need to be updated to handle a tarball instead of a Debian package.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: dockerfiles/ocw/node-hugo/Dockerfile#L8
Potential issue: The Dockerfile attempts to download a Hugo release artifact by
constructing a URL with the pattern `hugo_extended_${HUGO_VERSION}_linux-amd64.deb`. For
the specified `HUGO_VERSION` "0.157.0", this results in a URL for a non-existent file.
The correct artifact for this version is a `.tar.gz` archive and does not include
`_extended_` in its name. Consequently, the `wget` command will receive a 404 error,
which will cause the entire `RUN` command to fail and terminate the Docker image build
process.
Did we get this right? 👍 / 👎 to inform future reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.142.0→0.159.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
gohugoio/hugo (hugo)
v0.159.0Compare Source
This release greatly improves and simplifies management of Node.js/npm dependencies in a multi-module setup. See this page for more information.
Note
a8fca59@bep182b104@bepeb11c3d@bepBug fixes
eaf4c75@jmooring #14649Improvements
807cae1@mango766 #14112c4fb61d@xndvaz #4621hugo mod npm packd88a29e@bep9dd9c76@buley3315a86@bep3824484@bep7813c5c@bep #14649Dependency Updates
3ff9b7f@dependabot[bot]be93ccd@dependabot[bot]2669bca@dependabot[bot]753d447@dependabot[bot]4f39d72@dependabot[bot]Documentation
d2043cf@bep4f3c398@bepv0.158.0Compare Source
This release adds css.Build, native and very fast bundling/transformation/minifying of CSS resources. Also see the new strings.ReplacePairs, a very fast option if you need to do many string replacements.
Notes
1f578f1@bep #14595. This fixes a security issue in Go's template package used by Hugo: https://www.cve.org/CVERecord?id=CVE-2026-27142Deprecations
The methods and config options are deprecated and will be removed in a future Hugo release.
Also see this article
Language configuration
languageCode→ Uselocaleinstead.languages.<lang>.languageCode→ Uselanguages.<lang>.localeinstead.languages.<lang>.languageName→ Uselanguages.<lang>.labelinstead.languages.<lang>.languageDirection→ Uselanguages.<lang>.directioninstead.Language methods
.Site.LanguageCode→ Use.Site.Language.Localeinstead..Language.LanguageCode→ Use.Language.Localeinstead..Language.LanguageName→ Use.Language.Labelinstead..Language.LanguageDirection→ Use.Language.Directioninstead.Bug fixes
e431f90@bep #1462059e0446@jmooring #14615842d8f1@bep #146114eafd9e@bep #13877 #14601e310822@bepc9b88e4@bep #14536f797f84@bep #14573Improvements
3c980c0@bep #14629404ac00@jmooring #1462606fcb72@bep9b5f1d4@jmooring #14627623722b@bep #14623a7cbcf1@bep #1461936cdb2c@jmooring #146143e3b849@bep #14609 #14613c47ec23@bep #126934652ae4@bep13a95b9@jmooring #1459454c8048@bep157bfdd@bepd4f2122@jmooring #14269991d2f9@bepe857777@jmooring #1457144dc384@bep #14568Dependency Updates
0e46a97@bepc27d9e8@dependabot[bot]098eac5@dependabot[bot]87f8de8@dependabot[bot]67ef6c6@dependabot[bot]b29c2f7@dependabot[bot]e91d191@dependabot[bot]a8a54bd@dependabot[bot]v0.157.0Compare Source
The notable new feature is GitInfo support for Hugo Modules. See this repo for a runnable demo where multiple versions of the same content is mounted into different versions.
Bug fixes
3dff7c8@bep #145668e28668@bep #14562a18bec1@bep #14540Improvements
d98cd4a@bep #145646805997@jmooring #1455649bfb10@bep #14549b7203bb@jmooringdfece5b@bep #14431 #5533resources.GetRemote2d691c7@vanbroupb96d58a@bep65b4287@bep #14550cc338a9@bep3850881@bep #14543Dependency Updates
9869e71@dependabot[bot]8f47fe8@dependabot[bot]v0.156.0Compare Source
This release brings significant speedups of collections.Where and collections.Sort – but this is mostly a "spring cleaning" release, to make the API cleaner and simpler to understand/document.
Deprecated
See this topic for more info.
Removed
These have all been deprecated at least since
v0.136.0and any usage have been logged as an error for a long time:Template functions
Page methods:
Paginator:
Site methods:
Site config:
File caches:
Notes
af5051e@bep86aa625@bep #145214148ede@jmooring #14532828ee72@jmooring #143414384f9b@jmooring #1449155d136d@jmooring #14488Bug fixes
4a641d1@bep #145133f9d0ad@bep #1452432027e5@khayyamsaleem #14344498431d@jmooring773664b@bep #13422Improvements
bba2aed@bep29b8e17@bep #145313c82340@bepab62320@jmooring #14479 #144818d19f5a@bep #145227729473@bep47e39af@bep7850e7c@jmooring #145072e5132d@bep19ab3f5@jmooring #145043158a51@jmooring #13481b358a65@bep8ae5e1a@bepe277659@toddy15 #14486Dependency Updates
d8ec0ee@dependabot[bot]21be4af@dependabot[bot]e549016@dependabot[bot]a392906@dependabot[bot]86786c9@dependabot[bot]7a7308a@dependabot[bot]2d1d731@dependabot[bot]b26fbf8@dependabot[bot]7358309@dependabot[bot]Build Setup
e6f01bb@jmooring #14519de0c9f3@jmooring #14466Documentation
8b7b6af@bep7137714@jmooring #14502v0.155.3Compare Source
What's Changed
6ac7d08@bep #1448224eb84f@bep #1446995a3678@dependabot[bot]9045797@bep #14470v0.155.2Compare Source
Note that the bug fix below is for the two new dimensions introduced in
v0.153.0(version and role), multiple languages worked fine. Also, changes to the first version and role also worked, which had me head-scratching for a while. Oh, well, enjoy.0f1c7d1@bep #144616bd2bde@bep #14337 #14460v0.155.1Compare Source
What's Changed
b5d43cd@bep #14453b1e1eed@jmooring #14449f522a72@jmooringv0.155.0Compare Source
Some notable new things in this release are:
>= v1.0.0), and we now cache Go module version queries, which makes mounting multiple versions of the same GitHub repo with different version much more practical and enjoyable, se this site and config for an annotated example.aliasesnow works in multidimensional sites (e.g. multiple languages), and it is now much easier to create e.g. Netlify_redirectsfiles that works in such setups.Breaking change
Prior to v0.155.0, alias paths beginning with a slash (
/) were treated as server-relative. In v0.155.0 and later, they are now site-relative. This change only affects multilingual single-host projects that used alias paths beginning with a slash (/) to cross language boundaries. See details.Note
ee91c70@bep #14402Bug fixes
8a979d5@wjiecfd49df8@bepc7b35c8@bep #144418dfcece@bep #14433f472dd4@simonheimlicher #1441948566b6@simonheimlicher11f7f39@bep #14409 #144125ba03bf@jmooring #14388c1b2e58@bep #144052c61109@Sam-404-404 #1437232334d0@jmooring #14381Improvements
5916b61@bep #144377eafef2@bep00c4228@bep #144395f5b2f3@bep #14438ef7a22a@bep9a6bfe2@bep0fc63fb@bep50973e7@bepb441472@bep #14417ac2c3fb@bep #14414192e3c4@bep #14359e569dd5@bep #143701a94731@bep #143978e9e04e@jmooring #143908e2e60d@bep #131462bc54df@bep608ed09@bepd36a8f5@bep #14371Dependency Updates
7d45614@dependabot[bot]7f12c09@dependabot[bot]dab2c33@dependabot[bot]576d55d@dependabot[bot]b9400b8@dependabot[bot]ce0c7f4@dependabot[bot]7721411@bep1878471@dependabot[bot]94f1ede@dependabot[bot]ab374e3@dependabot[bot]1a91330@jmooring #14368Build Setup
e66a33d@bep #14448Documentation
b3ea2a5@jmooring67b5435@jmooring5a64551@bepv0.154.5Compare Source
What's Changed
a775488@bep #14357 #1436166ba63c@Hasaber8 #14207eb06a3c@jmooringv0.154.4Compare Source
What's Changed
ec178ea@BarkinBalci #140982d80b8a@bep #14354 #14356a2b2a5a@dependabot[bot]Also see the new Page.OutputFormats.Canonical method.
v0.154.3Compare Source
What's Changed
866b8e5@dependabot[bot]v0.154.2Compare Source
What's Changed
e9b9b36@bep #14339v0.154.1Compare Source
What's Changed
8f3527f@bep09048aa@bep #14333v0.154.0Compare Source
Hugo
v0.154.0is the 14th release this year (not counting patch releases) and introduces partial decorators, or “partials with a twist.” This is a very powerful construct that I, @bep, have always wanted to have in Hugo, but I could never wrap my head around an implementation. Until now.A small and not very useful example:
The above renders to:
innerkeyword can be used zero or more times in a partial template, typically with different data (e.g. pages in a range), and its presence signals a reversal of the execution -- the callee becomes the caller.This release also brings some new utility funcs in the reflect package to identify the core types in Hugo. For example, to identify an processable image hasn't been trivial, now it is:
Bug fixes
5c7fad2@bep #13418bf1d20d@bep #14104 #14325Improvements
d3b5d47@majiayu000 #1427786cd183@bep871da33@jmooring #143091deec99@bepb7bb557@bep #143077c19c19@bep #13193Dependency Updates
2637aa1@dependabot[bot]v0.153.5Compare Source
What's Changed
c6ae33c@bepedeebf0@bep #14321ea9675f@simonheimlicher #14316v0.153.4Compare Source
What's Changed
96777d9@bep #14310v0.153.3Compare Source
What's Changed
96ac146@dependabot[bot]d4c0e44@bep #14299v0.153.2Compare Source
What's Changed
a8c5d0d@bep #14295a94a941@bep #14284385d1a1@jmooringv0.153.1Compare Source
4085ee9@bep #14288168bf17@bep #14287f740d7c@bep #142835f46da6@jmooring #14282v0.153.0Compare Source
This is a good one! Hugo
v0.153.0comes with a powerful new multidimensional content model (languages, versions and roles) and completely overhauls WebP image support, and much more:complementsallows e.g. a site in Swedish to fill in missing gaps in the site in Norwegian's page and resource collections. Also see the new Rotate method, that allows you to rotate the content tree in a given dimension.v1.6.0) and run it in the Wazero runtime. We use this for both encoding and decoding. This solves an old and annoying issue with Go's stdlib's decoder, with loss of contrast and muted colors in some photos, but it also means that you don't need the extended version of Hugo to handle WebP images. And, drum roll, we now also support animated WebP, including converting to and from animated GIFs.pkginstallers.Also:
Notes
9937a5d@bep #14261.Site.Sitesto make it consistent with.Site.Languages.Configuration
📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.