https://github.com/genome/genome
Revision 25327500bd179f3a9cde0f832b48d49d15b9e28f authored by Thomas B. Mooney on 30 June 2016, 13:54:20 UTC, committed by Thomas B. Mooney on 30 June 2016, 13:54:20 UTC
It seems our systems are sometimes unreliable at returning a value here,
causing some build failures.  In my testing, it will fail to return a
value on the first attempt, but the second attempt will succeed.  Trying
this five times is thus probably overkill(!), but hopefully is
sufficient to make `Genome::Sys->username` reliable.

If things really go poorly, the user_id is often "good enough" as a
unique per-user value... just one less friendly to the viewer.  However,
it's insufficient to locate a `Genome::Sys::User` object, so anything
depending on real user objects would still fail.
1 parent e360b94
History
Tip revision: 25327500bd179f3a9cde0f832b48d49d15b9e28f authored by Thomas B. Mooney on 30 June 2016, 13:54:20 UTC
If we don't get a username back from `getpwuid`, try again!
Tip revision: 2532750

README

back to top