rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

Make `env.get...` return None?

Open wolfv opened this issue 1 year ago • 0 comments

Currently we cannot return a Null value from the env object functions. It might be useful to not set an env variable at all in the script env.

For example:

script:
  env:
    BLA: ${{ env.get("BLA") }} -> errors
    BLA: ${{ env.get_default("BLA", "") }} -> sets empy string
    BLA: ${{ eng["BLA"] }} -> not implemented, could return NULL and kick out BLA (because key/val with NULL is filtered).

wolfv avatar Feb 01 '24 11:02 wolfv