Documentation ¶
Index ¶
- func Products(projectInfo distgo.ProjectInfo, projectParam distgo.ProjectParam, ...) error
- func RequiresDist(projectInfo distgo.ProjectInfo, productParam distgo.ProductParam, ...) (*distgo.ProductParam, error)
- func Run(projectInfo distgo.ProjectInfo, productParam distgo.ProductParam, dryRun bool, ...) error
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, parallel 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.
Click to show internal directories.
Click to hide internal directories.