Documentation
¶
Overview ¶
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 ¶
type CheckGoModPipe struct{}
func (CheckGoModPipe) Run ¶
func (CheckGoModPipe) Run(ctx *context.Context) error
Run the ReplaceCheckPipe.
func (CheckGoModPipe) String ¶
func (CheckGoModPipe) String() string
type ErrProxy ¶
type ErrProxy struct {
// contains filtered or unexported fields
}
ErrProxy happens when something goes wrong while proxying the current go module.
Click to show internal directories.
Click to hide internal directories.