mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03: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:
parent
b0eea00756
commit
a87be597af
3 changed files with 11 additions and 0 deletions
|
@ -90,6 +90,7 @@ func NewClient(cfg ClientConfig) *Client {
|
|||
"GOPRIVATE", mcfg.Private,
|
||||
"GONOPROXY", mcfg.NoProxy,
|
||||
"GOPATH", cfg.CacheDir,
|
||||
"GOWORK", mcfg.Workspace, // Requires Go 1.18, see https://tip.golang.org/doc/go1.18
|
||||
// GOCACHE was introduced in Go 1.15. This matches the location derived from GOPATH above.
|
||||
"GOCACHE", filepath.Join(cfg.CacheDir, "pkg", "mod"),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue