mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
modules: Add modules.Workspace config for Go 1.18
Sets `GOWORK` env var for Go 1.18. Fixes #9525
This commit is contained in:
@@ -295,6 +295,12 @@ type Config struct {
|
||||
NoProxy string
|
||||
// Configures GOPRIVATE.
|
||||
Private string
|
||||
|
||||
// Set the workspace file to use, e.g. hugo.work.
|
||||
// Enables Go "Workspace" mode.
|
||||
// Requires Go 1.18+
|
||||
// See https://tip.golang.org/doc/go1.18
|
||||
Workspace string
|
||||
}
|
||||
|
||||
// hasModuleImport reports whether the project config have one or more
|
||||
|
Reference in New Issue
Block a user