-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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 config' does not respect '--environment' swtch #6503
Comments
I see this too. The config command also doesn't print the same values that are used when the build runs. For example |
For what it's worth, I can reproduce this in Hugo v0.60.0, too. |
Issue is also present in Hugo Static Site Generator v0.62.2-83E50184/extended linux/amd64 BuildDate: 2020-01-05T18:57:23Z |
having the same issue on Hugo Static Site Generator v0.63.1-CE9ACEB7 darwin/amd64 BuildDate: 2020-01-23T20:10:12Z |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
How To Reproduce
Create a new project:
Create two configuration files for two environments; define the same param key in each configuration file:
Use
hugo config
to get the value of themysetting
parameter in themyenv
environment:Expected Behaviour
Print just one line indicating that the
mysetting
parameter assumed the valuemyenv_value
.Observed Behaviour
A line is printed giving the value of the
mysetting
parameter as defined in the production environment:The text was updated successfully, but these errors were encountered: