Skip to content

Commit

Permalink
improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
haitham911 committed Feb 22, 2025
1 parent e4b6f24 commit da8006a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/config/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var (
ErrBasePath = errors.New("base_path required to process imports")
ErrBasePath = errors.New("basePath required to process imports")
ErrTempDir = errors.New("tempDir required to process imports")
ErrResolveLocal = errors.New("failed to resolve local import path")
)
Expand Down Expand Up @@ -237,14 +237,14 @@ func SearchAtmosConfig(path string) ([]string, error) {
return nil, fmt.Errorf("failed to find matching files: %w", err)
}
// Convert paths to absolute paths
atmosFilePathsABS, err := convertToAbsolutePaths(atmosFilePaths)
atmosFilePathsAbsolute, err := convertToAbsolutePaths(atmosFilePaths)
if err != nil {
return nil, fmt.Errorf("failed to convert paths to absolute paths: %w", err)
}
// Prioritize and sort files
atmosFilePathsABS = detectPriorityFiles(atmosFilePathsABS)
atmosFilePathsABS = sortFilesByDepth(atmosFilePathsABS)
return atmosFilePathsABS, nil
atmosFilePathsAbsolute = detectPriorityFiles(atmosFilePathsAbsolute)
atmosFilePathsAbsolute = sortFilesByDepth(atmosFilePathsAbsolute)
return atmosFilePathsAbsolute, nil
}

// Helper function to generate search patterns for extension yaml,yml

Check failure on line 250 in pkg/config/imports.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] pkg/config/imports.go#L250

Comment should end in a period (godot)
Raw output
pkg/config/imports.go:250:1: Comment should end in a period (godot)
// Helper function to generate search patterns for extension yaml,yml
^
Expand Down

0 comments on commit da8006a

Please sign in to comment.