-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
do-not-merge/holdIndicates that a PR should not merge because someone has issued a /hold command.Indicates that a PR should not merge because someone has issued a /hold command.
Description
Description
The project was initially running on Hugo v0.57.2, which is outdated and has several deprecated functions. To resolve this, an upgrade to Hugo v0.143.1 was attempted. However, after upgrading, the project fails to run.
Warnings Encountered in v0.57.2
- .Hugo is deprecated – Use the global hugo function.
- .RSSLink is deprecated – Use {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }} instead.
- .URL is deprecated – Use .Permalink or .RelPermalink.
- .UniqueID is deprecated – Use .File.UniqueID instead.
Steps to Reproduce
- Run the project on Hugo v0.57.2 → Project runs, but warnings appear.
- Upgrade Hugo to v0.143.1.
- Attempt to run the project → Project fails to start.
Suggested Fix
- Investigate why the project does not work after upgrading.
- Check for breaking changes between Hugo v0.57.2 and v0.143.1.
- Update template files and configurations to align with the latest Hugo syntax.
- Verify whether any custom themes or modules are incompatible with the newer version.
Impact
- Sticking to v0.57.2 will cause issues in future releases as deprecated functions will be removed.
- Upgrading to v0.143.1 breaks the project, making it non-functional.
- A proper migration strategy is needed to ensure smooth transition.
Additional Notes
Logs from the failing run on Hugo v0.143.1 should be analyzed to determine the root cause.
JesseStutler and yashisrani
Metadata
Metadata
Assignees
Labels
do-not-merge/holdIndicates that a PR should not merge because someone has issued a /hold command.Indicates that a PR should not merge because someone has issued a /hold command.