cold-vr-15232
03/02/2023, 8:18 AM['latest', None]
with type list
.`curved-television-6568
03/02/2023, 2:56 PMenv("NAME", "default")
curved-television-6568
03/02/2023, 2:57 PMNone
(guessing, as I don’t see the raw BUILD file contents)curved-television-6568
03/02/2023, 2:58 PMcurved-television-6568
03/02/2023, 2:59 PMrefined-addition-53644
03/02/2023, 3:00 PMNone
then we should errcurved-television-6568
03/02/2023, 3:00 PMcurved-television-6568
03/02/2023, 3:00 PMrefined-addition-53644
03/02/2023, 3:00 PMrefined-addition-53644
03/02/2023, 3:02 PMos.getenv
. We should also err if it’s an empty string.curved-television-6568
03/02/2023, 3:12 PMcold-vr-15232
03/02/2023, 3:28 PMproud-dentist-22844
03/02/2023, 8:49 PM""
depend on the env var. So, if you didn’t want ""
you could do something like (env("SOMETHING", "foo") or "foo")
I wonder if you could raise an error in a BUILD file… like (env("SOMETHING", "default") or raise Exception("SOMETHING is an empty string!"))
Has anyone tried raising exceptions in BUILD files?curved-television-6568
03/02/2023, 10:03 PM