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 0.137.0: misleading error message when running hugo deploy with flag #13012

Closed
deining opened this issue Nov 4, 2024 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@deining
Copy link
Contributor

deining commented Nov 4, 2024

From this discussion on hugo discourse:

Just tested newly released hugo version 0.137.0 and came across this issue:

$ hugo deploy
Error: deploy not supported in this version of Hugo;
install a release with 'withdeploy' in the archive filename
or build yourself with the 'withdeploy' build tag.
Also see https://github.com/gohugoio/hugo/pull/12995

So far so good.

Output is different and misleading as soon as you specify a flag (e.g. --force) together with the command. IMHO, the error message should be the same, but it isn't:

$ hugo deploy --force
Usage:
  hugo deploy [flags] [args]

Flags:
  -h, --help   help for deploy

Global Flags:
      --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
      --config string              config file (default is hugo.yaml|json|toml)
      --configDir string           config dir (default "config")
      --debug                      debug output
  -d, --destination string         filesystem path to write files to
  -e, --environment string         build environment
      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
      --logLevel string            log level (debug|info|warn|error)
      --quiet                      build in quiet mode
  -M, --renderToMemory             render to memory (mostly useful when running the server)
  -s, --source string              filesystem path to read files relative from
      --themesDir string           filesystem path to themes directory
  -v, --verbose                    verbose output

Error: command error: unknown flag: --force
@bep bep added this to the v0.138.0 milestone Nov 5, 2024
@bep bep added Bug and removed Enhancement labels Nov 5, 2024
@bep bep self-assigned this Nov 5, 2024
@bep bep modified the milestones: v0.138.0, v0.137.1 Nov 5, 2024
bep added a commit to bep/hugo that referenced this issue Nov 5, 2024
bep added a commit to bep/hugo that referenced this issue Nov 5, 2024
@bep bep closed this as completed in 2b0b3b8 Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants