Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add .config directories to configSearchPaths #4556

Closed
wants to merge 1 commit into from

Conversation

bombsimon
Copy link
Member

Support for .config proposal from https://github.com/pi0/config-dir. While walking the tree, check if a directory named .config exist. If so, add it to configSearchPaths to include when searching for .golangci.yaml.

Fixes #4554

Support for `.config` proposal from https://github.com/pi0/config-dir.
While walking the tree, check if a directory named `.config` exist. If
so, add it to `configSearchPaths` to include when searching for
`.golangci.yaml`.

Fixes golangci#4554
@ldez
Copy link
Member

ldez commented Mar 20, 2024

Based on my comment here, I will close the PR for now, more investigations are needed.

FYI the os.Stat is useless because viper handles that.

@ldez ldez closed this Mar 20, 2024
@ldez ldez added the declined label Mar 20, 2024
@bombsimon
Copy link
Member Author

It was mostly to not print a list with directories that doesn't exist when using -v rather than avoiding issues.

Makes sense, lets not keep the PR open 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support .config
2 participants