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

getpwuid should not fail the build #43

Open
mcollins123 opened this issue May 30, 2018 · 0 comments
Open

getpwuid should not fail the build #43

mcollins123 opened this issue May 30, 2018 · 0 comments

Comments

@mcollins123
Copy link

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.

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

No branches or pull requests

1 participant