RFR: 8300099: Configuration fails to auto-detect build user through $USER in dockers
Aleksey Shipilev
shade at openjdk.org
Fri Jan 13 10:11:14 UTC 2023
On Fri, 13 Jan 2023 04:10:16 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> Hi all,
>
> Configuration is broken in dockers after JDK-8296478.
> This is because `$USER` is not defined in dockers [1].
>
> The fix will check `whoami` if we get an empty `$USERNAME`.
>
> Thanks.
> Best regards,
> Jie
>
> [1] https://stackoverflow.com/questions/54411218/docker-why-isnt-user-environment-variable-set
I am seeing a relevant failure on some of my Windows machines that run buildbot in "anonymous" shells. `whoami` exists there, so this PR should fix that trouble.
-------------
PR: https://git.openjdk.org/jdk/pull/11983
More information about the build-dev
mailing list