예제 #1
0
파일: main.go 프로젝트: hanscj1/blueprint
func main() {
	flag.Parse()

	ctx := blueprint.NewContext()
	if !runAsPrimaryBuilder {
		ctx.SetIgnoreUnknownModuleTypes(true)
	}

	config := Config(!runAsPrimaryBuilder)

	bootstrap.Main(ctx, config)
}
예제 #2
0
func main() {
	flag.Parse()

	ctx := blueprint.NewContext()
	if !runAsPrimaryBuilder {
		ctx.SetIgnoreUnknownModuleTypes(true)
	}

	config := Config{
		generatingBootstrapper:   !runAsPrimaryBuilder && !buildPrimaryBuilder,
		generatingPrimaryBuilder: !runAsPrimaryBuilder && buildPrimaryBuilder,
	}

	bootstrap.Main(ctx, config)
}