modules: Add GOAUTH to module config

Closes #13385
This commit is contained in:
Bjørn Erik Pedersen
2025-02-13 11:00:02 +01:00
parent d89b9d891c
commit 2c77719cd6
4 changed files with 83 additions and 19 deletions

View File

@@ -295,6 +295,12 @@ type Config struct {
// Configures GOPRIVATE when running the Go command for module operations.
Private string
// Configures GOAUTH when running the Go command for module operations.
// This is a semicolon-separated list of authentication commands for go-import and HTTPS module mirror interactions.
// This is useful for private repositories.
// See `go help goauth` for more information.
Auth string
// Defaults to "off".
// Set to a work file, e.g. hugo.work, to enable Go "Workspace" mode.
// Can be relative to the working directory or absolute.