Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951725 - www-apps/hugo-0.114.2: deploy behaviour lost
Summary: www-apps/hugo-0.114.2: deploy behaviour lost
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jay Faulkner
URL: https://github.com/gohugoio/hugo/pull...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-03-21 19:31 UTC by Jay Faulkner
Modified: 2025-05-03 20:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Faulkner gentoo-dev 2025-03-21 19:31:01 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2025-05-03 20:20:07 UTC
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(-)