Lines Matching refs:errs
654 config interface{}) (deps []string, errs []error) {
665 config interface{}) (deps []string, errs []error) {
700 newModules, errs := runAndRemoveLoadHooks(c, config, module, &scopedModuleFactories)
701 if len(errs) > 0 {
702 return errs
708 errs = addModule(n)
709 if len(errs) > 0 {
710 return errs
719 …module, errs := processModuleDef(def, file.Name, c.moduleFactories, scopedModuleFactories, c.ignor…
720 if len(errs) == 0 && module != nil {
721 errs = addModule(module)
724 if len(errs) > 0 {
725 atomic.AddUint32(&numErrs, uint32(len(errs)))
726 errsCh <- errs
740 var errs []error
741 deps, errs = c.WalkBlueprintsFiles(rootDir, filePaths, handleOneFile)
742 if len(errs) > 0 {
743 errsCh <- errs
752 errs = append(errs, newErrs...)
759 errs = append(errs, newErrs...)
769 return deps, errs
795 visitor FileHandler) (deps []string, errs []error) {
833 file, blueprints, deps, errs := c.openAndParse(blueprint.fileName, blueprint.Scope, rootDir,
835 if len(errs) > 0 {
836 errsCh <- errs
851 if len(errs) == 0 {
884 if len(errs) > maxErrors {
890 errs = append(errs, newErrs...)
955 subBlueprints []fileParseContext, deps []string, errs []error) {
983 errs = append(errs, err)
986 file, subBlueprints, errs = c.parseOne(rootDir, filename, f, scope, parent)
989 if len(errs) > 0 {
990 return nil, nil, nil, errs
1012 …pe, parent *fileParseContext) (file *parser.File, subBlueprints []fileParseContext, errs []error) {
1022 file, errs = parser.ParseAndEval(filename, reader, scope)
1023 if len(errs) > 0 {
1024 for i, err := range errs {
1030 errs[i] = err
1036 return nil, nil, errs
1042 errs = append(errs, err)
1046 errs = append(errs, &BlueprintError{
1055 errs = append(errs, err)
1066 errs = append(errs, newErrs...)
1072 return file, subBlueprintsAndScope, errs
1079 var errs []error
1089 errs = append(errs, &BlueprintError{
1097 errs = append(errs, &BlueprintError{
1105 errs = append(errs, &BlueprintError{
1114 return blueprints, errs
1121 var errs []error
1131 errs = append(errs, &BlueprintError{
1139 errs = append(errs, &BlueprintError{
1147 errs = append(errs, &BlueprintError{
1156 return blueprints, errs
1237 var errs []error
1278 errs = append(errs, newErrs...)
1289 return newModules, errs
1293 mutatorName, variationName string, defaultVariationName *string) (errs []error) {
1314 errs = append(errs, &BlueprintError{
1325 return errs
1390 propertyMap, errs := proptools.UnpackProperties(moduleDef.Properties, module.properties...)
1391 if len(errs) > 0 {
1392 for i, err := range errs {
1398 errs[i] = err
1401 return nil, errs
1430 namespace, errs := c.nameInterface.NewModule(
1434 if len(errs) > 0 {
1435 for i := range errs {
1436 errs[i] = &BlueprintError{Err: errs[i], Pos: module.pos}
1438 return errs
1451 func (c *Context) ResolveDependencies(config interface{}) (deps []string, errs []error) {
1455 func (c *Context) resolveDependencies(ctx context.Context, config interface{}) (deps []string, errs…
1459 deps, errs = c.generateSingletonBuildActions(config, c.preSingletonInfo, c.liveGlobals)
1460 if len(errs) > 0 {
1464 errs = c.updateDependencies()
1465 if len(errs) > 0 {
1470 mutatorDeps, errs = c.runMutators(ctx, config)
1471 if len(errs) > 0 {
1481 if len(errs) > 0 {
1482 return nil, errs
1912 func (c *Context) updateDependencies() (errs []error) {
1925 errs = append(errs, &BlueprintError{
1934 errs = append(errs, &BlueprintError{
2038 func (c *Context) PrepareBuildActions(config interface{}) (deps []string, errs []error) {
2044 extraDeps, errs = c.resolveDependencies(ctx, config)
2045 if len(errs) > 0 {
2052 depsModules, errs = c.generateModuleBuildActions(config, c.liveGlobals)
2053 if len(errs) > 0 {
2058 depsSingletons, errs = c.generateSingletonBuildActions(config, c.singletonInfo, c.liveGlobals)
2059 if len(errs) > 0 {
2069 errs = []error{err}
2089 if len(errs) > 0 {
2090 return nil, errs
2096 func (c *Context) runMutators(ctx context.Context, config interface{}) (deps []string, errs []error…
2107 newDeps, errs = c.runMutator(config, mutator, topDownMutator)
2109 newDeps, errs = c.runMutator(config, mutator, bottomUpMutator)
2113 if len(errs) > 0 {
2118 if len(errs) > 0 {
2124 if len(errs) > 0 {
2125 return nil, errs
2176 direction mutatorDirection) (deps []string, errs []error) {
2232 if len(mctx.errs) > 0 {
2233 errsCh <- mctx.errs
2259 errs = append(errs, newErrs...)
2286 if len(errs) > 0 {
2287 return nil, errs
2352 errs = c.addModule(module)
2353 if len(errs) > 0 {
2354 return nil, errs
2359 errs = c.handleRenames(rename)
2360 if len(errs) > 0 {
2361 return nil, errs
2364 errs = c.handleReplacements(replace)
2365 if len(errs) > 0 {
2366 return nil, errs
2370 errs = c.updateDependencies()
2371 if len(errs) > 0 {
2372 return nil, errs
2376 return deps, errs
2438 var errs []error
2451 errs = append(errs, newErrs...)
2496 if len(mctx.errs) > 0 {
2497 errsCh <- mctx.errs
2502 var errs []error
2504 errs = append(errs, c.missingDependencyError(module, depName))
2506 errsCh <- errs
2524 return deps, errs
2531 var errs []error
2562 if len(sctx.errs) > 0 {
2563 errs = append(errs, sctx.errs...)
2564 if len(errs) > maxErrors {
2574 errs = append(errs, newErrs...)
2575 if len(errs) > maxErrors {
2580 return deps, errs
2586 var errs []error
2594 errs = append(errs, err)
2598 if len(errs) > 0 {
2599 return errs
2693 var errs []error
2700 errs = append(errs, c.nameInterface.Rename(group.name, rename.name, group.namespace)...)
2703 return errs
2707 var errs []error
2727 return errs
2730 func (c *Context) discoveredMissingDependencies(module *moduleInfo, depName string) (errs []error) {
2738 func (c *Context) missingDependencyError(module *moduleInfo, depName string) (errs error) {