Documentation
¶
Index ¶
- type ActivatedStep
- func ActivateGitRefStep(log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, ...) (ActivatedStep, error)
- func ActivatePathRefStep(log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, ...) (ActivatedStep, error)
- func ActivateSteplibRefStep(log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, ...) (ActivatedStep, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivatedStep ¶
type ActivatedStep struct {
StepYMLPath string
// ExecutablePath is a local path to the main entrypoint of the step, ready for execution.
// This can be an empty string if:
// - step was activated from a git reference (we checked out the source dir directly)
// - step was activated from a local path (we copied the source dir directly)
// - step was activated from a steplib reference, but step.yml has no entry for pre-compiled binaries (we fallback to source checkout)
// - step was activated from a stpelib reference, but step.yml has no pre-compiled binary for the current OS+arch combo (we fallback to source checkout)
ExecutablePath string
// DidStepLibUpdate indicates that the local steplib cache was updated while resolving the exact step version.
// TODO: this is a leaky abstraction and we shouldn't signal this here, but it requires a bigger refactor.
// (stepman should keep track of this info in a file probably)
DidStepLibUpdate bool
}
func ActivateGitRefStep ¶
func ActivateGitRefStep( log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, workDir string, ) (ActivatedStep, error)
func ActivatePathRefStep ¶
func ActivatePathRefStep( log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, workDir string, ) (ActivatedStep, error)
func ActivateSteplibRefStep ¶
func ActivateSteplibRefStep( log stepman.Logger, id stepid.CanonicalID, activatedStepDir string, workDir string, didStepLibUpdateInWorkflow bool, isOfflineMode bool, stepInfoPtr *models.StepInfoModel, ) (ActivatedStep, error)
Click to show internal directories.
Click to hide internal directories.