summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-18 12:43:59 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-18 15:06:58 +0100
commita87be597af21b8f7000706b3ed4201022a9b7a8f (patch)
treea15a5363dddefe56ad7251ddb7c8eefd559446f2 /docs
parentb0eea007560a04e10d6e9f8bf6fee8b39e1deb34 (diff)
modules: Add modules.Workspace config for Go 1.18
Sets `GOWORK` env var for Go 1.18. Fixes #9525
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/hugo-modules/configuration.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/en/hugo-modules/configuration.md b/docs/content/en/hugo-modules/configuration.md
index fc57f774f..73bb0eb4f 100644
--- a/docs/content/en/hugo-modules/configuration.md
+++ b/docs/content/en/hugo-modules/configuration.md
@@ -23,6 +23,7 @@ proxy = "direct"
noProxy = "none"
private = "*.*"
replacements = ""
+workspace = ""
{{< /code-toggle >}}
@@ -41,6 +42,9 @@ noProxy
private
: Comma separated glob list matching paths that should be treated as private.
+workspace {{< new-in "0.83.0" >}}
+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+.
+
replacements {{< new-in "0.77.0" >}}
: A comma separated (or a slice) list of module path to directory replacement mapping, e.g. `github.com/bep/myprettytheme -> ../..,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/myprettytheme -> ../.."`. Any relative path is relate to [themesDir](https://gohugo.io/getting-started/configuration/#all-configuration-settings), and absolute paths are allowed.