Help us shape the future of Go! Take the 2026 Go Developer Survey

finalize

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(gf *Finalizer) error

Types

type BuildpackConfig added in v1.9.1

type BuildpackConfig struct {
	LDFlags map[string]string `yaml:"ldflags"`
}

type Command

type Command interface {
	Execute(string, io.Writer, io.Writer, string, ...string) error
}

type Finalizer

type Finalizer struct {
	Stager           Stager
	Command          Command
	Log              *libbuildpack.Logger
	VendorTool       string
	GoVersion        string
	Godep            godep.Godep
	MainPackageName  string
	GoPath           string
	PackageList      []string
	BuildFlags       []string
	VendorExperiment bool
}

func NewFinalizer

func NewFinalizer(stager Stager, command Command, logger *libbuildpack.Logger) (*Finalizer, error)

func (*Finalizer) CompileApp

func (gf *Finalizer) CompileApp() error

func (*Finalizer) CreateStartupEnvironment

func (gf *Finalizer) CreateStartupEnvironment(tempDir string) error

func (*Finalizer) HandleVendorExperiment

func (gf *Finalizer) HandleVendorExperiment() error

func (*Finalizer) RunDepEnsure added in v1.8.9

func (gf *Finalizer) RunDepEnsure() error

func (*Finalizer) RunGlideInstall

func (gf *Finalizer) RunGlideInstall() error

func (*Finalizer) SetBuildFlags

func (gf *Finalizer) SetBuildFlags(config BuildpackConfig)

func (*Finalizer) SetGoCache added in v1.8.37

func (gf *Finalizer) SetGoCache() error

func (*Finalizer) SetInstallPackages

func (gf *Finalizer) SetInstallPackages() error

func (*Finalizer) SetMainPackageName

func (gf *Finalizer) SetMainPackageName() error

func (*Finalizer) SetupGoPath

func (gf *Finalizer) SetupGoPath() error

type Stager

type Stager interface {
	BuildDir() string
	CacheDir() string
	ClearDepDir() error
	DepDir() string
	DepsIdx() string
	WriteProfileD(string, string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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