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

Error: unknown command "check" for "hugo" #33

Open
mfontani opened this issue Mar 14, 2022 · 1 comment
Open

Error: unknown command "check" for "hugo" #33

mfontani opened this issue Mar 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mfontani
Copy link

Since Hugo v0.92.2 (inclusive) the hugo check ... command has been removed, and using this plugin with a version of hugo greater than or equal to v0.92.2 fails with:

Error: unknown command "check" for "hugo"

... which I believe to be because the plug-in runs a "check" on the configuration file before using it.

Would it be possible to remove that check so that the builds can work with recent hugo versions?

Otherwise we're stuck with only being able to use versions up to v0.92.1 (inclusive) only :/

@lafriks lafriks added the bug Something isn't working label Mar 23, 2022
@xstefen
Copy link

xstefen commented Apr 20, 2022

hugo check is ran when validate: true. Although it would be preferential to have this fixed, one can set validate: false in the meantime.

My current mostly-functional build step:

- name: build
  image: plugins/hugo
  settings:
    hugo_version: 0.97.0
    extended: true
    minify: true
    pull: always
    url: $URL
    validate: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants