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

Add a error-detection config for older versions of Hugo #229

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

chalin
Copy link
Collaborator

@chalin chalin commented Jun 26, 2023

  • Closes Warn about Hugo versions prior to 0.110.0 #228
  • E.g., when using Hugo 0.109:
    $ npx hugo
    WARN 2023/06/26 16:59:04 Module "project" is not compatible with this Hugo version; run "hugo mod graph" for more information.
    Start building sites … 
    hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371+extended darwin/amd64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio
    Error: Error building site: "/Users/chalin/git/lf/docsy/docsy-example/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found
    Total in 21 ms
  • Adding this config file does not (seem to) affect builds using Hugo 0.110.0 and later (as we can see from the build of this PR).

/cc @geriom

@chalin chalin requested a review from deining June 26, 2023 21:14
Copy link
Collaborator

@deining deining left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!
LGTM!

config.yaml Show resolved Hide resolved
@chalin chalin merged commit 02a898c into google:main Jun 26, 2023
5 checks passed
@chalin chalin deleted the chalin-im-old-hugo-config-2023-06-26 branch June 26, 2023 22:01
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

Successfully merging this pull request may close these issues.

Warn about Hugo versions prior to 0.110.0
2 participants