@@ -49,7 +49,7 @@ func (graph *ComponentGraph) getComponentGraph(rootDirectory string) (*Component
4949 return nil , err
5050 }
5151 if ! isDirectory {
52- return nil , fmt .Errorf ("Provided path '%s' is not a directory" , rootDirectory )
52+ return nil , fmt .Errorf ("provided path '%s' is not a directory" , rootDirectory )
5353 }
5454 if err := filepath .Walk (rootDirectory , func (path string , fi os.FileInfo , err error ) error {
5555 if err != nil {
@@ -92,20 +92,20 @@ func isDirectory(path string) (bool, error) {
9292func (component * Component ) getComponentFromConfig (configFilePath , rootDir string ) (* Component , error ) {
9393 yamlFile , err := os .ReadFile (configFilePath )
9494 if err != nil {
95- return nil , fmt .Errorf ("Config file not found: '%s'" , configFilePath )
95+ return nil , fmt .Errorf ("config file not found: '%s'" , configFilePath )
9696 }
9797 err = yaml .Unmarshal (yamlFile , component )
9898 if err != nil {
99- return nil , fmt .Errorf ("Error reading config file '%s', invalid format: %v" , configFilePath , err )
99+ return nil , fmt .Errorf ("error reading config file '%s', invalid format: %v" , configFilePath , err )
100100 }
101101
102102 configFilePath , err = filepath .Abs (configFilePath )
103103 if err != nil {
104- return nil , fmt .Errorf ("Error determining absolute config file path '%s': %v" , configFilePath , err )
104+ return nil , fmt .Errorf ("error determining absolute config file path '%s': %v" , configFilePath , err )
105105 }
106106 rootDir , err = filepath .Abs (rootDir )
107107 if err != nil {
108- return nil , fmt .Errorf ("Error determining absolute root directory path '%s': %v" , rootDir , err )
108+ return nil , fmt .Errorf ("error determining absolute root directory path '%s': %v" , rootDir , err )
109109 }
110110 rootDir = rootDir + "/"
111111 component .Path = strings .TrimSuffix (strings .TrimPrefix (configFilePath , rootDir ), "/" + configFile )
@@ -146,7 +146,7 @@ func (graph *ComponentGraph) resolveGraph() (ComponentGraph, error) {
146146 g .addComponent (graph .componentIDs [id ])
147147 }
148148
149- return g , errors .New ("Circular dependency found" )
149+ return g , errors .New ("circular dependency found" )
150150 }
151151
152152 // remove ready components (without dependencies) from the
0 commit comments