Documentation ¶
Overview ¶
Package gomod provides go modules utilities, such as template variables and the ability to proxy the module from proxy.golang.org.
Package gomod provides go modules utilities, such as template variables and the ability to proxy the module from proxy.golang.org.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReplaceWithProxy = errors.New("cannot use the go.mod replace directive with go mod proxy enabled")
ErrReplaceWithProxy happens when the configuration has gomod.proxy enabled, and the go.mod file contains replace directives.
Replaces does not work with proxying, nor with go installs, and are made for development only.
Functions ¶
This section is empty.
Types ¶
type CheckGoModPipe ¶ added in v1.22.0
type CheckGoModPipe struct{}
func (CheckGoModPipe) Run ¶ added in v1.22.0
func (CheckGoModPipe) Run(ctx *context.Context) error
Run the ReplaceCheckPipe.
func (CheckGoModPipe) String ¶ added in v1.22.0
func (CheckGoModPipe) String() string
type ErrProxy ¶ added in v0.162.0
type ErrProxy struct {
// contains filtered or unexported fields
}
ErrProxy happens when something goes wrong while proxying the current go module.
type Pipe ¶
type Pipe struct{}
Pipe for gomod.
Click to show internal directories.
Click to hide internal directories.