Is it really correct, that it you use `val FOO by ...
# github-workflows-kt
v
Is it really correct, that it you use
val FOO by Contexts.env
, you end up with just
FOO
instead of
env.FOO
?
p
you seem to be right - I checked if there's a test for it. There is an end-to-end one, but with no assertion (!) and the printed output is empty instead of using the env vars' value: https://github.com/typesafegithub/github-workflows-kt/blame/8005a2e446b7c80cabb68ea9022b3fb2d87ef973/.github/workflows/end-to-end-tests.main.kts#L191 (+ the screenshot), and a unit test: https://github.com/typesafegithub/github-workflows-kt/blob/8005a2e446b7c80cabb68ea[…]github/typesafegithub/workflows/dsl/expressions/ContextsTest.kt
please report a bug
in fact, two bugs to be fixed: (1) consuming env vars + (2) no assertions in the end-to-end tests - it's not easy to add them always, but here we could add them fairly easily
v
What I wondered is, that this was done intentionally in the lib.
Maybe @jmfayard remembers how he did that?
p
shared some findings in the issue