chore: Replace os.Getenv("HOME") with os.UserHomeDir() (#12850)#14325
Merged
jannfis merged 2 commits intoargoproj:masterfrom Jul 10, 2023
Merged
chore: Replace os.Getenv("HOME") with os.UserHomeDir() (#12850)#14325jannfis merged 2 commits intoargoproj:masterfrom
os.Getenv("HOME") with os.UserHomeDir() (#12850)#14325jannfis merged 2 commits intoargoproj:masterfrom
Conversation
`os.UserHomeDir()` is the recommended way of getting user home directory Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #14325 +/- ##
==========================================
- Coverage 49.76% 49.76% -0.01%
==========================================
Files 261 261
Lines 44676 44678 +2
==========================================
Hits 22232 22232
- Misses 20257 20259 +2
Partials 2187 2187
☔ View full report in Codecov by Sentry. |
Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com>
ishitasequeira
approved these changes
Jul 6, 2023
Member
ishitasequeira
left a comment
There was a problem hiding this comment.
Thanks @aynp .. The changes look good!!
os.Getenv("HOME") with os.UserHomeDir() (#12850)os.Getenv("HOME") with os.UserHomeDir() (#12850)
yyzxw
pushed a commit
to yyzxw/argo-cd
that referenced
this pull request
Aug 9, 2023
…12850) (argoproj#14325) * Replace `os.Getenv("HOME")` with `os.UserHomeDir()` `os.UserHomeDir()` is the recommended way of getting user home directory Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com> * Retrigger CI pipeline Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com> --------- Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com>
Closed
tesla59
pushed a commit
to tesla59/argo-cd
that referenced
this pull request
Dec 16, 2023
…12850) (argoproj#14325) * Replace `os.Getenv("HOME")` with `os.UserHomeDir()` `os.UserHomeDir()` is the recommended way of getting user home directory Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com> * Retrigger CI pipeline Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com> --------- Signed-off-by: Aryan Pathania <cont-a-pathania@mercari.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
os.UserHomeDir()is the recommended way of getting user home directoryCloses #12850
Checklist:
Please see Contribution FAQs if you have questions about your pull-request.