drone-plugins / drone-hugo

Drone plugin to publish Hugo generated websites
https://plugins.drone.io/plugins/hugo
Apache License 2.0
29 stars 20 forks source link

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

Open mfontani opened 2 years ago

mfontani commented 2 years ago

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 :/

xstefen commented 2 years ago

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