-
Hi, I found that we can use couple of Starlark builtins in Cirrus, for example: load("cirrus", "fs") Is there a way to use time builtin in Cirrus or should I create a feature request for that? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What is your use case for time? Philosophy behind Starlark is to eliminate side effect and make the execution of the scripts reproducible based on inputs. That's why there is no random and time. Even an iteration over a set is deterministic. Right now the only side effect you can bring to the scripts is via |
Beta Was this translation helpful? Give feedback.
What if we add
CIRRUS_CHANGE_TIMESTAMP
environment variable instead to expose timestamp of the Git commit?