Open fmunteanu opened 6 months ago
This has come up before but we didn't log an issue:
https://discourse.gohugo.io/t/quiet-down-hugo-mod-get/47747/2
I'm wondering if this is the expected behaviour, since the help clearly states I can use that flag:
No, but the hugo mod get
command is a little special. We have a few tools that depends on external programs (e.g. go
) that currently doesn't work well with the --source
flag. I have never used the --source
flag myself, so it's not on my "top 10" list of things to fix.
I did a quick check now, and we do set the Cmd.Dir
to the value of --source
when running the go
commands via os/exec
, so this should work if we fixed the flag handling.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Issue
Running the Hugo module update does not accept the global
--source
flag:I'm wondering if this is the expected behaviour, since the help clearly states I can use that flag:
The recursive update works as intended:
There are no issues running
hugo mod tidy -s ./docs
, for example.