Fork me on GitHub
#boot
<
2018-02-03
>
seancorfield00:02:04

BTW @grzm

clj -Sdeps '{:paths ["src" "test"]}' -R:test -e "(require 'com.grzm.ex.tools-deps-alt-test-test) (clojure.test/run-all-tests)"

seancorfield00:02:44

The :paths piece is needed because you don't have :extra-paths ["test"] in your :test alias in deps.edn which I would recommend.

alexmiller00:02:55

Luke V has a new project that does all that for you

grzm00:02:22

cheers, @seancorfield

alexmiller00:02:57

In tandem with the new clj alias it’s pretty sweet

grzm00:02:16

Thanks, @alexmiller

grzm00:02:35

And yay for -A!

grzm00:02:25

how long before that’ll be available in brew?

alexmiller00:02:07

Pr has been filed so I’m waiting on them

alexmiller00:02:26

May be a day

alexmiller00:02:47

I need to write some docs too :)

grzm01:02:37

Nice. Docs are good. Congrats!

seancorfield00:02:55

That test-runner is nice! I've been amazed how much I can get done with just clj... much as I've previously been doing with boot directly on the command-line without a build.boot file...

grzm00:02:14

@seancorfield https://github.com/boot-clj/boot/issues/689 if you want to add or correct anything

grzm00:02:08

@alexmiller The CLI tools have helped me better understand how Clojure works with the JVM. It’s been good.

seancorfield01:02:42

Decided to release [seancorfield/boot-tools-deps "0.4.1"] which uses the new 0.5.351 version of tools.deps.alpha and adds a -x option to run clojure.main, along with -M to support main-aliases like the soon-to-be-released new version of clj!

seancorfield01:02:15

So if your deps.edn files provide an alias containing :main-opts to identify a main program and/or other options then you can say boot -d seancorfield/boot-tools-deps deps -x -M alias ... and get the same behavior.

witek15:02:38

Hello. How to configure boot to check a thirt party maven repository for dependencies?

moxaj15:02:44

@witek try (merge-env! :repositories [["your-repository-name" {:url "your-repository-url"}]])

witek15:02:24

@moxaj Thank you. Could you give me a hint, where I should have found this information on the boot-clj website?

moxaj15:02:21

https://github.com/boot-clj/boot/wiki/Boot-Environment mentions :repositories, that's all I could find 😕

petrus16:02:17

How can I checkout a Git library using boot-tools-deps / deps.edn so that the version I need is available in build.boot? I tried (deps :quick-merge true) before calling (require '[my-lib ...]) but I can't seem to access the lib

seancorfield21:02:00

@petrus Can you share what you're trying (post it in a GitHub repo)?

seancorfield21:02:42

Bear in mind that using local and git repos will only update the :source-paths, not :dependencies (because there is no "dependency") to put there.

seancorfield21:02:40

clj and tools.deps are all about building a classpath and running code -- and that's exactly what boot-tools-deps does -- it updates the classpath, by adding :paths to :resource-paths, :extra-paths to :source-paths, and any JARs that tools.deps finds (by resolving dependencies) go on the Boot classpath. In addition, tools.deps expands the dependencies it finds and boot-tool-deps has options to either replace :dependencies with that discovered set or merge it in.