summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-12-19 17:49:45 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-12-19 20:17:33 +0100
commit330fa8941152108327504b511c563dacfc3f4c75 (patch)
treea532ed1c77666714792dc8481624fedda9901d2b /docs
parent6db527483dec048fbcc5735c41b137a8eb6508e4 (diff)
modules: Adjust watch logic vs workspace use definitions
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/hugo-modules/configuration.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/hugo-modules/configuration.md b/docs/content/en/hugo-modules/configuration.md
index c05201f8a..5b19d2419 100644
--- a/docs/content/en/hugo-modules/configuration.md
+++ b/docs/content/en/hugo-modules/configuration.md
@@ -23,7 +23,7 @@ proxy = "direct"
noProxy = "none"
private = "*.*"
replacements = ""
-workspace = ""
+workspace = "off"
{{< /code-toggle >}}
noVendor
@@ -42,7 +42,7 @@ private
: Comma separated glob list matching paths that should be treated as private.
workspace
-: The workspace file to use. This enables Go workspace mode. Note that this can also be set via OS env, e.g. `export HUGO_MODULE_WORKSPACE=/my/hugo.work` This only works with Go 1.18+.
+: The workspace file to use. This enables Go workspace mode. Note that this can also be set via OS env, e.g. `export HUGO_MODULE_WORKSPACE=/my/hugo.work` This only works with Go 1.18+. In Hugo `v0.109.0` we changed the default to `off` and we now resolve any relative work filenames relative to the working directory.
replacements
: A comma separated (or a slice) list of module path to directory replacement mapping, e.g. `github.com/bep/my-theme -> ../..,github.com/bep/shortcodes -> /some/path`. This is mostly useful for temporary locally development of a module, and then it makes sense to set it as an OS environment variable, e.g: `env HUGO_MODULE_REPLACEMENTS="github.com/bep/my-theme -> ../.."`. Any relative path is relate to [themesDir](https://gohugo.io/getting-started/configuration/#all-configuration-settings), and absolute paths are allowed.