Unintuitive: $VARLOCK_IS_CI is not boolean #579
-
|
Not sure whether to make this an issue, so let's start with discussion. Key issue: $VARLOCK_IS_CI return string, not a boolean. I'd expect a boolean. Confusing examples when run locally:
I'd expect Workaround:
which is fine but more verbose than I'd prefer. Changing |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Yeah as noted in the docs it's a string (https://varlock.dev/reference/builtin-variables/#varlock_is_ci). I'm assuming this was to preserve compat in |
Beta Was this translation helpful? Give feedback.
-
|
Oh I think that’s just a bug! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
The fix for it being a string instead of a boolean will be rolled out this afternoon! |
Beta Was this translation helpful? Give feedback.
Yeah as noted in the docs it's a string (https://varlock.dev/reference/builtin-variables/#varlock_is_ci). I'm assuming this was to preserve compat in
process.envor because this value is pre-coercion, but @theoephraim will know best.