-
Notifications
You must be signed in to change notification settings - Fork 5.9k
chore: Replace os.Getenv("HOME")
with os.UserHomeDir()
(#12850)
#14325
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
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @aynp .. The changes look good!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
os.Getenv("HOME")
with os.UserHomeDir()
(#12850)os.Getenv("HOME")
with os.UserHomeDir()
(#12850)
…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>
…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>
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.