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

Rely on os.UserHomeDir() #1563

Merged
merged 3 commits into from Jan 24, 2022
Merged

Rely on os.UserHomeDir() #1563

merged 3 commits into from Jan 24, 2022

Conversation

skitt
Copy link
Contributor

@skitt skitt commented Jan 17, 2022

Instead of hard-coding Windows and *nix environment variables, rely on
os.UserHomeDir() to do the right thing. Ignore errors since those only
happen in situations we don't care about (and didn't handle
previously).

Signed-off-by: Stephen Kitt skitt@redhat.com

For changes to files under the /model/ folder, and manual edits to autogenerated code (e.g. /service/s3/api.go) please create an Issue instead of a PR for those type of changes.

If there is an existing bug or feature this PR is answers please reference it here.

skitt and others added 3 commits January 17, 2022 12:13
Instead of hard-coding Windows and *nix environment variables, rely on
os.UserHomeDir() to do the right thing. Ignore errors since those only
happen in situations we don't care about (and didn't handle
previously).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to create this PR @skitt. The change looks good. I made a minor tweak to remove unused import, and added changelog entry.

@skitt
Copy link
Contributor Author

skitt commented Jan 20, 2022

Thanks for taking the time to create this PR @skitt. The change looks good. I made a minor tweak to remove unused import, and added changelog entry.

Ah yes, I missed the no-longer-necessary import! Thanks for the fixes.

@jasdel jasdel merged commit 452ee5e into aws:main Jan 24, 2022
jrichard8 pushed a commit to jrichard8/aws-sdk-go-v2 that referenced this pull request Feb 14, 2022
Instead of hard-coding Windows and *nix environment variables, rely on
os.UserHomeDir() to do the right thing. Ignore errors since those only
happen in situations we don't care about (and didn't handle
previously).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
Co-authored-by: Jason Del Ponte <961963+jasdel@users.noreply.github.com>
@skitt skitt deleted the os-homedir branch August 22, 2023 10:35
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.

None yet

3 participants