Skip to content

Hugo Version Upgrade Causes Project to Stop Running  #344

@Shrutim1505

Description

@Shrutim1505

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

  1. Run the project on Hugo v0.57.2 → Project runs, but warnings appear.
  2. Upgrade Hugo to v0.143.1.
  3. Attempt to run the project → Project fails to start.

Suggested Fix

  1. Investigate why the project does not work after upgrading.
  2. Check for breaking changes between Hugo v0.57.2 and v0.143.1.
  3. Update template files and configurations to align with the latest Hugo syntax.
  4. 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.

Metadata

Metadata

Assignees

Labels

do-not-merge/holdIndicates that a PR should not merge because someone has issued a /hold command.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions