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

Add HUGOFLAGS env var #5947

Open
bep opened this issue May 8, 2019 · 1 comment
Open

Add HUGOFLAGS env var #5947

bep opened this issue May 8, 2019 · 1 comment
Milestone

Comments

@bep
Copy link
Member

bep commented May 8, 2019

Saw this in the Go CLI, which I would find useful having something similar for Hugo:

GOFLAGS=-mod=vendor

E.g.

HUGOFLAGS="-D --path-warnings"

Or something.

@bep bep added the Enhancement label May 8, 2019
@bep bep added this to the v0.56 milestone May 8, 2019
@bep bep modified the milestones: v0.56, v0.57 Jun 14, 2019
@bep bep modified the milestones: v0.57, v0.58 Jul 31, 2019
@bep bep modified the milestones: v0.58, v0.59 Aug 13, 2019
@bep bep modified the milestones: v0.59, v0.60 Sep 6, 2019
@Boot-Error
Copy link

Hello OP,
This sounds super useful! I'm willing to take up this issue.
Please hint me some pointers in the codebase to starts hacking 😃

Here

hugo/main.go

Line 23 in 0e75af7

resp := commands.Execute(os.Args[1:])
the value of HUGOFLAGS can be added along with os.Args[1:].

Boot-Error added a commit to Boot-Error/hugo that referenced this issue Oct 12, 2019
Implements use of `HUGOFLAGS` env variable to supply flags. This is
useful for personal setups or scripts that require multiple invocation
of hugo with same set of flags. Inspired by `GOFLAGS`

Fixes gohugoio#5947
@bep bep modified the milestones: v0.60, v0.61 Oct 21, 2019
@bep bep modified the milestones: v0.61, v0.62, v0.63 Nov 25, 2019
@bep bep modified the milestones: v0.63, v0.64 Dec 11, 2019
@bep bep modified the milestones: v0.64, v0.65 Jan 22, 2020
@bep bep modified the milestones: v0.65, v0.66 Jan 30, 2020
@bep bep modified the milestones: v0.66, v0.67 Mar 2, 2020
@bep bep removed this from the v0.67 milestone Mar 9, 2020
@bep bep added this to the v0.111.0 milestone Jan 26, 2023
@bep bep modified the milestones: v0.111.0, v0.112.0 Feb 15, 2023
@bep bep modified the milestones: v0.112.0, v0.113.0 Apr 15, 2023
@bep bep modified the milestones: v0.113.0, v0.115.0 Jun 13, 2023
@bep bep modified the milestones: v0.115.0, v0.116.0 Jun 30, 2023
@bep bep modified the milestones: v0.116.0, v0.117.0 Aug 1, 2023
@bep bep modified the milestones: v0.117.0, v0.118.0 Aug 30, 2023
@bep bep modified the milestones: v0.118.0, v0.119.0 Sep 15, 2023
@bep bep modified the milestones: v0.119.0, v0.120.0 Oct 4, 2023
@bep bep modified the milestones: v0.120.0, v0.121.0 Oct 31, 2023
@bep bep modified the milestones: v0.121.0, v0.122.0 Dec 6, 2023
@bep bep modified the milestones: v0.122.0, v0.123.0, v0.124.0 Jan 27, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 4, 2024
@bep bep modified the milestones: v0.125.0, v0.126.0 Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants