in internal/fabric/stages.go [44:88]
func InitializeFoundationStages(
configPath string,
prefix string,
vars ...*VarsFile,
) []*Stage {
stages := make([]*Stage, 0)
deps := make([]*VarsFile, 0)
for _, s := range fastStages {
if s == "1-resman" {
for _, r := range resmanVars {
deps = append(
deps,
resmanDependencies(r, s, prefix, configPath),
)
}
} else {
deps = vars
}
repo := utils.NewRepo()
repo.SetURL(fabricRepo)
repo.SetDestination(filepath.Join(configPath, fabricDst))
repo.SetLink(
filepath.Join(configPath, foundationDir),
filepath.Join(configPath, fabricDst, fastSrc),
)
stages = append(stages, &Stage{
Name: s,
Type: "foundation",
Path: filepath.Join(configPath, foundationDir, s),
Repository: repo,
ProviderFile: NewProviderFile(
s,
prefix,
filepath.Join(configPath, foundationDir),
),
StageVars: deps,
})
}
return stages
}