Built-in variable BAKE_LOCAL_PLATFORM#748
Conversation
|
What's the benefit of this compared to "local" that is accepted by |
I have a edge case where I want to be able to know the current local platform in order to use it in an HCL function. It's not for purely dedicated build usage. But yeah it can be confusing with this name. Something like |
I guess that is fine. Could also be builtin var. We already added one for remotes and want to add another for |
fbaf4f8 to
32561e6
Compare
Yes a builtin var looks better. |
32561e6 to
3d0fb39
Compare
localplatform HCL funcBAKE_LOCAL_PLATFORM
3d0fb39 to
1dc44d3
Compare
Signed-off-by: CrazyMax <[email protected]>
1dc44d3 to
55a3ce6
Compare
Add built-in variable
BAKE_LOCAL_PLATFORMthat returns the current platform's default platform specification (e.g.linux/amd64).Signed-off-by: CrazyMax [email protected]