-
Notifications
You must be signed in to change notification settings - Fork 644
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
Prefer HOME environment variable #1263
Conversation
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.
Which is actually your use case in which both values are different ?
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.
.
I discovered this during the execution of a CI build, where the HOME variable was changed inside the build and the login to the Docker registry was made by |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Codecov Report
@@ Coverage Diff @@
## master #1263 +/- ##
============================================
+ Coverage 61.99% 62.02% +0.02%
- Complexity 2148 2150 +2
============================================
Files 166 166
Lines 9470 9472 +2
Branches 1438 1438
============================================
+ Hits 5871 5875 +4
+ Misses 3084 3083 -1
+ Partials 515 514 -1
|
Updated the changelog. |
I think this PR is valid, as a user can change HOME but not user.home. I wonder whether we need update/add some documentation, too ? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
@twz123 anything you would like to tackle, too ? (sorry for the long delay, the intervals when i'm able to work on dmp get longer and longer ...) |
,@rhuss sure, I'll have a look, although this might take some time on my side, too 🙈 |
thanks ! and no worries, we are operating on a slow time scale anyway (sorry, i feel guilty a bit here that everything is so slow here, but i'm working on a solution here) |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
@twz123 : polite ping, Are you still working on this? |
@rohanKanojia let's fix that on our own, fix shouldn't be hard. @twz123 hope this is ok for you when we take over the last steps. |
The Java system property is filled by a syscall to determine the user's home directory. This is not matching the typical implementation of the docker and kubectl binaries, which prefer the HOME OS environment variable over the syscall.
6345d9a
to
c203542
Compare
+ Update DockerConnectionDetector,VolumeBindingUtil with updated precedence for home OS environment variable + Move HOME OS env variable resolving logic to EnvUtil
8a20007
to
b77caf1
Compare
The Java system property is filled by a syscall to determine the user's home directory. This is not matching the typical implementation of the docker and kubectl binaries, which prefer the HOME OS environment variable over the syscall.