Skip to content

[v12] Use os.UserHomeDir where possible#25998

Merged
zmb3 merged 2 commits intobranch/v12from
bot/backport-25950-branch/v12
May 11, 2023
Merged

[v12] Use os.UserHomeDir where possible#25998
zmb3 merged 2 commits intobranch/v12from
bot/backport-25950-branch/v12

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 10, 2023

Backport #25950 and #26010 to branch/v12

@github-actions github-actions Bot requested review from Joerger and r0mant May 10, 2023 15:43
@zmb3 zmb3 changed the title [v12] User os.UserHomeDir where possible [v12] Use os.UserHomeDir where possible May 10, 2023
zmb3 added 2 commits May 11, 2023 12:34
In #24156 we removed a lot of unnecessary calls to user.Current,
which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were
doing a full user lookup only to find the user's home directory,
which is usually more readily available via the environment.
This fixes a bug introduced in #25950
@zmb3 zmb3 force-pushed the bot/backport-25950-branch/v12 branch from 91bfd51 to eb83c4f Compare May 11, 2023 18:34
@zmb3 zmb3 enabled auto-merge May 11, 2023 18:34
@zmb3 zmb3 added this pull request to the merge queue May 11, 2023
Merged via the queue into branch/v12 with commit 543e383 May 11, 2023
@zmb3 zmb3 deleted the bot/backport-25950-branch/v12 branch May 11, 2023 19:23
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