gomod

package
v0.6.24 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 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.

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) Skip

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

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.

func (ErrProxy) Error

func (e ErrProxy) Error() string

func (ErrProxy) Unwrap

func (e ErrProxy) Unwrap() error

type Pipe

type Pipe struct{}

Pipe for gomod.

func (Pipe) Default

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) Skip

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

func (Pipe) String

func (Pipe) String() string

type ProxyPipe

type ProxyPipe struct{}

ProxyPipe for gomod proxy.

func (ProxyPipe) Run

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

Run the ProxyPipe.

func (ProxyPipe) Skip

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

func (ProxyPipe) String

func (ProxyPipe) String() string

Jump to

Keyboard shortcuts

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