dist

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Products

func Products(projectInfo distgo.ProjectInfo, projectParam distgo.ProjectParam, configModTime *time.Time, productDistIDs []distgo.ProductDistID, dryRun bool, stdout io.Writer) error

func RequiresDist

func RequiresDist(projectInfo distgo.ProjectInfo, productParam distgo.ProductParam, configModTime *time.Time) (*distgo.ProductParam, error)

RequiresDist returns a pointer to a distgo.ProductParam that contains only the Dister parameters for the output dist artifacts that require generation. A product is considered to require generating dist artifacts if any of the following is true:

  • Any of the dist artifact output paths do not exist
  • The product's dist configuration (as specified by configModTime) is more recent than any of its dist artifacts
  • The product has dependencies and any of the dependent build or dist artifacts are newer (have a later modification date) than any of the dist artifacts for the provided product
  • The product does not define a dist configuration

Returns nil if all of the outputs exist and are up-to-date.

func Run

func Run(projectInfo distgo.ProjectInfo, productParam distgo.ProductParam, dryRun bool, stdout io.Writer) error

Run executes the Dist action for the specified product. Produces both the dist output directory and the dist artifacts for all of the disters for the product. The outputs for the dependent products for the provided product must already exist in the proper locations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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