This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-03
Channels
- # beginners (48)
- # boot (26)
- # cider (7)
- # cljsrn (1)
- # clojure (137)
- # clojure-nl (1)
- # clojure-spec (5)
- # clojure-uk (18)
- # clojurescript (26)
- # cursive (8)
- # datascript (4)
- # datomic (4)
- # defnpodcast (11)
- # docker (1)
- # duct (7)
- # figwheel (4)
- # fulcro (7)
- # off-topic (7)
- # re-frame (46)
- # reagent (40)
- # reitit (3)
- # shadow-cljs (4)
BTW @grzm
clj -Sdeps '{:paths ["src" "test"]}' -R:test -e "(require 'com.grzm.ex.tools-deps-alt-test-test) (clojure.test/run-all-tests)"
The :paths
piece is needed because you don't have :extra-paths ["test"]
in your :test
alias in deps.edn
which I would recommend.
Luke V has a new project that does all that for you
cheers, @seancorfield
In tandem with the new clj alias it’s pretty sweet
Thanks, @alexmiller
Pr has been filed so I’m waiting on them
May be a day
I need to write some docs too :)
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...
@seancorfield https://github.com/boot-clj/boot/issues/689 if you want to add or correct anything
@alexmiller The CLI tools have helped me better understand how Clojure works with the JVM. It’s been good.
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
!
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.
@witek try (merge-env! :repositories [["your-repository-name" {:url "your-repository-url"}]])
@moxaj Thank you. Could you give me a hint, where I should have found this information on the boot-clj website?
https://github.com/boot-clj/boot/wiki/Boot-Environment mentions :repositories
, that's all I could find 😕
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
@petrus Can you share what you're trying (post it in a GitHub repo)?
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.
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.