Skip to content

Rely on os.UserHomeDir()#1563

Merged
jasdel merged 3 commits intoaws:mainfrom
skitt:os-homedir
Jan 24, 2022
Merged

Rely on os.UserHomeDir()#1563
jasdel merged 3 commits intoaws:mainfrom
skitt:os-homedir

Conversation

@skitt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants