updater

package
v0.0.0-...-d13d548 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package updater contains gps.Updater implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dep

type Dep struct {
	// Dir specifies where the dep binary is executed.
	// If empty, current working directory is used.
	Dir string
}

Dep is an Updater that updates Go packages in a project managed by dep.

It requires the dep binary to be available in PATH.

func (Dep) Update

func (d Dep) Update(repo *gps.Repo) error

Update specified repository to latest version by calling "dep ensure -update <repo-root>" in d.Dir directory.

type Gopath

type Gopath struct{}

Gopath is an Updater that updates Go packages in local GOPATH workspaces.

func (Gopath) Update

func (Gopath) Update(repo *gps.Repo) error

Update specified repository to latest version.

type Mock

type Mock struct{}

Mock is a mock updater.

func (Mock) Update

func (Mock) Update(repo *gps.Repo) error

Update pretends to update specified repository to latest version.

Jump to

Keyboard shortcuts

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