mach icon indicating copy to clipboard operation
mach copied to clipboard

mach/props and mach/constant conflicting

Open stijnopheide opened this issue 8 years ago • 0 comments

Use case

Set an environment variable using mach/constant

mach/constant {environment "staging"}

You are not able to use this constant in mach/props

mach/props [config (aero.core/read-config "conf.edn" {:profile (keyword #ref [mach/constant environment])})]

This doesn't work as expected.

The reason for using mach/constant is the ability to pass in another value from the command-line with --constant '{environment "prod"}'.

stijnopheide avatar Sep 13 '17 20:09 stijnopheide