juxt / mach

A remake of make (in ClojureScript)
246 stars 21 forks source link

Auto require does not always work? #36

Closed arichiardi closed 7 years ago

arichiardi commented 7 years ago

Hello again folks!

I was trying this:

{
  mach/dependencies [[fipp "0.6.8"]]
  project (fipp.edn/pprint "teaee")
}

$ mach project
"teaee"

While:

{
  mach/dependencies [[fipp "0.6.8"]]
  project (-> "teaee" fipp.edn/pprint)
}

$ mach project
WARNING: No such namespace: fipp.edn, could not locate fipp/edn.cljs, fipp/edn.cljc, or Closure namespace ""
WARNING: Use of undeclared Var fipp.edn/pprint
Cannot read property 'pprint' of undefined

I did not have time to debug it today so I decided to just report it :smile:

arichiardi commented 7 years ago

Uhm, it looks like it does not work unless it is in first position.