Vampire
05/11/2025, 10:48 AMval FOO by Contexts.env, you end up with just FOO instead of env.FOO?Piotr Krzemiński
05/11/2025, 11:42 AMPiotr Krzemiński
05/11/2025, 11:43 AMPiotr Krzemiński
05/11/2025, 11:44 AMVampire
05/11/2025, 4:58 PMVampire
05/11/2025, 4:59 PMpropertyToExprPath at https://github.com/typesafegithub/github-workflows-kt/blob/main/github-workflows-k[…]b/typesafegithub/workflows/dsl/expressions/ExpressionContext.kt would do the right think I think.Vampire
05/11/2025, 4:59 PMVampire
05/11/2025, 5:01 PMPiotr Krzemiński
05/11/2025, 8:16 PMPiotr Krzemiński
05/13/2025, 7:43 AMContexts.envContext that would actually support the env context and let us test support for it, and in v4 we'd:
• rename Contexts.envContext to Contexts.env
• rename Contexts.env to something else, ideally outside of Contexts, maybe Shell.env?Vampire
05/13/2025, 9:52 AMShell.env and deprecate Contexts.env and then with v4 change the meaning of Contexts.env you will have users going from v3.4.0 to v4 and thus miss the deprecation message and just get changed behavior.
I don't think there is a really good way to do such a change unless you just consider the current behaviour a bug you simply fix. 😄
But either way, we should probably immediately introduce the replacement (Shell.env or whatever) and deprecated Contexts.env, so that users at least have a chance to migrate away from it proactively.Piotr Krzemiński
05/13/2025, 9:53 AMVampire
05/13/2025, 9:56 AMVampire
05/13/2025, 9:56 AM