Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo Version Upgrade Causes Project to Stop Running #344

Open
Shrutim1505 opened this issue Feb 5, 2025 · 4 comments
Open

Hugo Version Upgrade Causes Project to Stop Running #344

Shrutim1505 opened this issue Feb 5, 2025 · 4 comments
Assignees
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Comments

@Shrutim1505
Copy link
Contributor

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.

@Shrutim1505
Copy link
Contributor Author

/assign

@JesseStutler
Copy link
Member

Great! It's very useful, I also have met the problem that hugo version can't upgrade to the latest because it will impact the whole page. Our contributors in volcano are not familiar with HTML/js, so very happy to see you can contribute for our website/dashboard

@Shrutim1505
Copy link
Contributor Author

Hi, @JesseStutler its not a big issue, it will take some time I will upgrade hugo manually and provide u dependencies with newest version for the same.

@Shrutim1505
Copy link
Contributor Author

hi @Monokaix @JesseStutler I will propose a draft PR.
I have upgraded hugo but was encountering one issue related that.
please give your valuable suggestions to me to solve it.

@Shrutim1505 Shrutim1505 mentioned this issue Feb 8, 2025
1 task
@Shrutim1505 Shrutim1505 changed the title Hugo Version Upgrade Causes Project to Stop Running Hugo Version Upgrade Causes Project to Stop Running [WIP] Feb 8, 2025
@volcano-sh-bot volcano-sh-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 8, 2025
@Shrutim1505 Shrutim1505 changed the title Hugo Version Upgrade Causes Project to Stop Running [WIP] Hugo Version Upgrade Causes Project to Stop Running Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

No branches or pull requests

3 participants