gomod

package
v1.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 15 Imported by: 0

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) Skip added in v1.22.0

func (CheckGoModPipe) Skip(ctx *context.Context) bool

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.

func (ErrProxy) Error added in v0.162.0

func (e ErrProxy) Error() string

func (ErrProxy) Unwrap added in v0.162.0

func (e ErrProxy) Unwrap() error

type Pipe

type Pipe struct{}

Pipe for gomod.

func (Pipe) Default added in v0.162.0

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults.

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe.

func (Pipe) String

func (Pipe) String() string

type ProxyPipe added in v0.180.0

type ProxyPipe struct{}

ProxyPipe for gomod proxy.

func (ProxyPipe) Run added in v0.180.0

func (ProxyPipe) Run(ctx *context.Context) error

Run the ProxyPipe.

func (ProxyPipe) Skip added in v0.180.0

func (ProxyPipe) Skip(ctx *context.Context) bool

func (ProxyPipe) String added in v0.180.0

func (ProxyPipe) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL