cuppa icon indicating copy to clipboard operation
cuppa copied to clipboard

getpwuid should not fail the build

Open mcollins123 opened this issue 6 years ago • 0 comments

Currently if you use env.CreateVersion to create a version file and don't have any of the following environment variables set: 'LOGNAME', 'USER', 'LNAME', 'USERNAME' and pwd.getpwuid(os.getuid())[0] fails then cuppa throws the exception from getpwuid failing the build.

Cuppa should probably catch this exception and set the user id to something like "?" or "Unknown". We hit this issue when trying to generate a version file within a docker container.

mcollins123 avatar May 30 '18 14:05 mcollins123