As of October 2024, hugo is no longer being built with deploy support by default: https://github.com/gohugoio/hugo/pull/12995 -- this means that currently, with identical use flags, the stable 0.131.0 hugo ebuild is built WITH deploy support, and the testing 0.114.2 hugo ebuild is built WITHOUT deployment support. This setting was never exposed as a USE flag and the change in behavior was unexpected. Reproducible: Always Steps to Reproduce: 1. emerge =www-apps/hugo-0.131.0 2. Run hugo deploy 3. Site deploys (if configured) 4. emerge =www-apps/hugo-0.114.2 5. Run hugo deploy Actual Results: Get error pointing to https://github.com/gohugoio/hugo/pull/12995 about deploy support being made a non-default compile option. Expected Results: Deploy support being controlled by a use flag, so it would've signaled to me to change the USE flag as the default changed.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7796a13d4bd46adc9eaa6c765eda4f2e95aca079 commit 7796a13d4bd46adc9eaa6c765eda4f2e95aca079 Author: Jay Faulkner <jayf@gentoo.org> AuthorDate: 2025-05-03 20:17:47 +0000 Commit: Jay Faulkner <jayf@gentoo.org> CommitDate: 2025-05-03 20:19:55 +0000 www-apps/hugo: add 0.147.1, take maintainership Added 0.147.1, this version adds a use flag "deploy", reflecting upstream adding an option to build with or without deployment code. This ebuild aggressively removes test files as many hugo tests expect to be able to run `npm install` or be able to call HEAD on one of many random websites. Ideally we would patch out less bluntly. Additionally, I am taking maintainership of this package. Bug: https://bugs.gentoo.org/951725 Signed-off-by: Jay Faulkner <jayf@gentoo.org> www-apps/hugo/Manifest | 2 + www-apps/hugo/hugo-0.147.1.ebuild | 149 ++++++++++++++++++++++++++++++++++++++ www-apps/hugo/metadata.xml | 8 +- 3 files changed, 157 insertions(+), 2 deletions(-)