MCPcopy Create free account
hub / github.com/celer-pkg/celer / validate

Method validate

configs/port.go:448–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446}
447
448func (p Port) validate() error {
449 if p.Package.Url == "" {
450 return fmt.Errorf("url of %s is empty", p.Name)
451 }
452
453 if p.Name == "" {
454 return fmt.Errorf("name of %s is empty", p.Name)
455 }
456
457 if p.Package.Ref == "" {
458 return fmt.Errorf("version of %s is empty", p.Name)
459 }
460
461 for _, config := range p.BuildConfigs {
462 if err := config.Validate(); err != nil {
463 return err
464 }
465 }
466
467 return nil
468}
469
470func (p Port) matchBuildConfig(config buildsystems.BuildConfig) bool {
471 // Merge SystemNames and SystemName into a single list.

Callers 1

InitMethod · 0.95

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected