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

Load config from different locations prefer XDG_CONFIG_HOME before HOME #912

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

mfederowicz
Copy link
Contributor

@mfederowicz mfederowicz commented Oct 2, 2023

base on #725

make some cleanup, and tests using github.com/spf13/afero package for mocking filesystem

@mfederowicz mfederowicz changed the title cleanup loading config from different locations (based on user env va… Load config from different locations prefer XDG_CONFIG_HOME before HOME Oct 2, 2023
@mfederowicz
Copy link
Contributor Author

@chavacava can you look at my changes? Sorry for go.sum mess but I can find solution to make file with latest checksums for packages :(

Copy link
Collaborator

@chavacava chavacava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mfederowicz, thank you for the PR!
I've left some comments and minor formatting suggestions.

cli/main.go Outdated Show resolved Hide resolved
cli/main_test.go Show resolved Hide resolved
cli/main_test.go Outdated Show resolved Hide resolved
cli/main_test.go Outdated Show resolved Hide resolved
cli/main_test.go Outdated Show resolved Hide resolved
cli/main_test.go Outdated Show resolved Hide resolved
cli/main_test.go Outdated Show resolved Hide resolved
lint/config.go Show resolved Hide resolved
cli/main_test.go Show resolved Hide resolved
@mfederowicz
Copy link
Contributor Author

ok @chavacava I commited changes with yours suggestions, let me know i all good, and then we can squash commits and go to master :P

@chavacava chavacava merged commit cd2737a into mgechev:master Oct 3, 2023
4 checks passed
@mfederowicz mfederowicz deleted the xdg-config-home branch October 2, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants