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

Ensure the right HOME environment value is set during Pygit2 remote initialization #67186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

meaksh
Copy link
Contributor

@meaksh meaksh commented Jan 22, 2025

What does this PR do?

This PR ensures the right value for HOME environment is properly set during Pygit2 remote initialization for the running process, according to the right user defined in the Salt Master configuration, preventing possible errors when the HOME env is missing, i.a.:

_pygit2.GitError: error loading known_hosts:

What issues does this PR fix or reference?

Fixes #64121

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.

See GitHub's page on GPG signing for more information about signing commits with GPG.

This commit ensures the right HOME value is set during Pygit2 remote
initialization, otherwise there are chances to get exceptions as
pygit2/libgit2 is relying on it.
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.

[BUG] onedir blocks installation of shared libraries for pygit2 gitfs in 3006.0
1 participant