Open st opened 7 years ago
It should have precedence. The code performs a (merge environ/env env)
, so the environment argument should take precedence. If it's not, something is going weirdly wrong.
Hi,
thanks for quick answer.
Looking at the code, I came to the same conclusion (if merge
is not broken ;-) )
Here is a tiny project to show/reproduce this issue: https://github.com/st/precedence (especially https://github.com/st/precedence/blob/master/test/precedence/core_test.clj)
Keep in mind there may be something I misunderstood.
In a new project, let's create this task:
and add this test
It works fine until environment variable
CONFIG_PATH
is declared.Shouldn't binding in deftask
(environ :env {:config-path "path-test.edn"})
have precedence over environment variable?