Fork me on GitHub
#boot
<
2018-07-23
>
hlolli11:07:25

does boot parse the CLASSPATHS env-variable for colon seperated classpaths, if not, is there an alternative way to feed boot a colon seperated classpath without modifying build.boot ?

hlolli13:07:40

By using set-env! :source-paths, I add an absolute path to org_clojure_clojure-1.9.0.jar, still boot tries to download clojure

Could not transfer artifact org.clojure:clojure:pom:1.9.0 from/to clojars (): : Name or service not known
the pom file is inside the jar, don't get it. I need to use boot in offline mode for what Im doing.

hlolli14:07:33

I could try to set these jars in an .m2 directory... I try that

hiredman21:07:32

we've recently upgraded from 2.7.2 to 2.8.1 at work, and this task that was working is now complaining clojure.lang.ExceptionInfo: option :target must be of type [str]

seancorfield23:07:45

That seems to be quite an important breaking change...

$  boot -d boot/new new -t app -n taskarg
...
$  cd taskarg/
$  cat build.boot 
...
(deftask run
  "Run the project."
  [a args ARG [str] "the arguments for the application."]
  (with-pass-thru fs
    (require '[taskarg.core :as app])
    (apply (resolve 'app/-main) args)))
...
$  boot run -a foo
java.lang.IllegalArgumentException: option :args must be of type [str]
        clojure.lang.ExceptionInfo: option :args must be of type [str]
That works just fine in 2.7.2.

seancorfield23:07:49

The docs indicate this should work https://github.com/boot-clj/boot/wiki/Task-Options-DSL#multi-options

Options can also be sets or vectors. Multiple use of the option on the command line conjes items onto the set or vector.