[MacPorts] #64735: hugo install fails due to change in bash completion generation
MacPorts
noreply at macports.org
Sat Feb 26 22:22:35 UTC 2022
#64735: hugo install fails due to change in bash completion generation
---------------------+--------------------
Reporter: jdwoody | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: hugo
---------------------+--------------------
Per this issue in hugo:\\
https://github.com/gohugoio/hugo/issues/8862
The command hugo gen autocomplete was removed in favor of hugo completion
[shell] in v0.92.2. The release notes for hugo confirm:\\
https://github.com/gohugoio/hugo/releases
As a result, the macports installation fails due to the old comman. This
is a very simple fix in the Portfile:\\
https://github.com/macports/macports-
ports/blob/master/www/hugo/Portfile#L42
Command to reproduce:
{{{
sudo port install hugo +bash_completion +extended
}}}
Relevant log snippet:
{{{
...
:debug:build system -W
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_hugo/hugo/work/gopath/src/github.com/gohugoio/hugo:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_hugo/hugo/work/gopath/src/github.com/gohugoio/hugo/hugo
gen autocomplete --completionfile=hugo.sh
:info:build Error: unknown flag: --completionfile
:info:build Usage:
:info:build hugo gen [command]
:info:build Available Commands:
:info:build chromastyles Generate CSS stylesheet for the Chroma code
highlighter
:info:build doc Generate Markdown documentation for the Hugo
CLI.
:info:build man Generate man pages for the Hugo CLI
:info:build Flags:
...
}}}
Please let me know if you need any further information
--
Ticket URL: <https://trac.macports.org/ticket/64735>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list