Skip to content

Commit

Permalink
Use whoami instead of $USER (#1843)
Browse files Browse the repository at this point in the history
Use `whoami` to populate the `user` build info property. 

Docker does not create the envrironment variable USER per
https://docs.docker.com/engine/reference/run/#environment-variables

Signed-off-by: Gera Shegalov <gera@apache.org>
  • Loading branch information
gerashegalov authored Mar 7, 2024
1 parent 8f8aeed commit 2ea234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-info
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo_build_properties() {
libcudf_path=$3
shift 3
echo version=$version
echo user=$USER
echo user=$(whoami)
echo revision=$(cd "$git_path" && git rev-parse HEAD)
echo branch=$(cd "$git_path" && git rev-parse --abbrev-ref HEAD)
echo date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
Expand Down

0 comments on commit 2ea234f

Please sign in to comment.