mach
mach copied to clipboard
mach/props and mach/constant conflicting
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"}'.