bazelbuild / rules_license

Apache License 2.0
80 stars 28 forks source link

Prefer getpass.getuser() over os.getlogin() #109

Closed mering closed 1 year ago

mering commented 1 year ago

Prefer getpass.getuser() over os.getlogin() as noted in the official docs.

This fixes the following error when running within a Debian container in GitHub codespaces:

>>> import os
>>> os.getlogin()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 6] No such device or address
aiuto commented 1 year ago

Thanks for catching this.