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

Deprecation errors during website build on latest Hugo version #163

Open
artur-rs opened this issue Aug 29, 2024 · 4 comments
Open

Deprecation errors during website build on latest Hugo version #163

artur-rs opened this issue Aug 29, 2024 · 4 comments
Assignees

Comments

@artur-rs
Copy link
Member

(events-2024-08-29)[artur-rs ~/3mdeb/3mdeb-website]$ hugo serve
Watching for changes in /home/araglis/3mdeb/3mdeb-website/{archetypes,assets,content,package.json,postcss.config.js,static,themes}
Watching for config changes in /home/araglis/3mdeb/3mdeb-website/config.toml, /home/araglis/3mdeb/3mdeb-website/config/_default, /home/araglis/3mdeb/3mdeb-website/go.mod
Start building sites … 
hugo v0.131.0-bfbee17932ff24009008aa94cdd75c0c41f59279+extended linux/amd64 BuildDate=2024-08-02T09:03:48Z VendorInfo=snap:0.131.0

WARN  deprecated: .Site.Social was deprecated in Hugo v0.124.0 and will be removed in a future release. Use .Site.Params instead.
WARN  deprecated: .Site.Authors was deprecated in Hugo v0.124.0 and will be removed in a future release. Use taxonomies instead.
@Stanislaw-bnk
Copy link
Contributor

@artur-rs Is this issue still ongoing? Any tips on how I might resolve it?

@artur-rs
Copy link
Member Author

@Stanislaw-bnk log precisely shows what component should be used instead (.Site.Params and taxonomies). My take would be:

  • check official documentation on what each component does and if there are any dependencies we need to check
  • maybe check existing threads about migration to newer Hugo versions and how to do that
  • chatGPT can be handy in some requests
  • implement changes on each deprecated component/each file and test the solution by checking the build logs

@artur-rs
Copy link
Member Author

Latest status and related tries regarding deprecation error: #178

@artur-rs artur-rs changed the title Deprecation warnings during website build Deprecation errors during website build on latest Hugo version Jan 23, 2025
@artur-rs
Copy link
Member Author

New status:

  • the errors are now fixed by the temporary workaround (SEO CI workflow: hugo version downgrade to 0.111.3, like in the deploy workflow)
  • During local preview/development, use preview /scripts or install Hugo locally in version <= 0.124
  • If we want to have latest Hugo in the CI, we still need to address the problem described in this issue. To remind, our tries to fix the problem were documented here: Hugo 0.141.0 deprecation workaround #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants