boot

2019-04-26T07:41:16.011700Z

I'm porting a lein project to boot. In the process i'm just reading from the project.clj. Now i'm wondering isn't there a boot library for this?

Perry Fraser 2019-04-26T11:37:13.011900Z

@me1926 has joined the channel

Perry Fraser 2019-04-26T11:38:15.013100Z

Hi, I’m trying to play around with overtone but a recent bug fix hasn’t been published on clojars for whatever reason. How can I specify in the dependencies env that I just want to pull the latest version from their github repo’s master branch?

2019-04-26T11:39:08.013700Z

via boot-tools-deps possibly? You might run into other issues, but it's an option

Perry Fraser 2019-04-26T11:45:25.014800Z

Seems like it’s archived, I’m more wondering if there’s an idiomatic boot method to do this.

seancorfield 2019-04-29T03:54:31.029600Z

Just to clarify -- as the author of boot-tools-deps -- the reason I archived it is because there are inherent limitations to what you can do combining tools.deps and Boot as an external tool, because Boot's view of classpaths and dependencies has some cognitive dissonance with how the Clojure CLI / deps.edn works. I created the tool as a path to migrate from Boot to deps.edn but in the end, it worked best when you had a working deps.edn project and wanted to add some simple Boot-based functionality to it... Over time, the tooling around deps.edn improved to the point where it was no longer necessary to try to "bolt on" parts of Boot (or Leiningen). My recommendation would be either use deps.edn -- and stick with the tooling supported for that -- or use build.boot and stick with Boot.

Perry Fraser 2019-04-26T11:45:49.015400Z

And unless I’m missing something from reading boot-tools-deps I’m not sure how that let’s you pull boot deps from github.

2019-04-26T12:04:00.016400Z

other option is to install it locally

Perry Fraser 2019-04-26T12:04:12.016600Z

ah

Perry Fraser 2019-04-26T12:04:13.016800Z

thank you

2019-04-26T12:05:33.017600Z

boot-tool-deps might be archived but deps.edn will have a place in the roadmap of boot if i'm correct. So it would be a temporary thing

Perry Fraser 2019-04-26T12:13:29.017800Z

👍

Perry Fraser 2019-04-26T12:17:41.018400Z

@jeroenvandijk in the example you sent do you know why you have #_:scope #_"provided" for the boot-tool-deps dep?

2019-04-26T12:18:06.018600Z

I don't remember

2019-04-26T12:18:31.018900Z

i think because you don't want to have it part of the uberjar

Perry Fraser 2019-04-26T12:18:37.019200Z

hm

2019-04-26T12:18:40.019300Z

but i guess that didn't work

2019-04-26T12:19:09.020Z

there are issues to this approach, but it might solve your immediate issue

Perry Fraser 2019-04-26T12:19:13.020200Z

and how would you get this to actually pull the deps when you run e.g. boot repl?

2019-04-26T12:19:48.020600Z

something like this

(deftask repl []
  (comp
   (deps :quick-merge true)
   (boot.task.built-in/repl)))

2019-04-26T12:19:54.020800Z

you sound skeptical

2019-04-26T12:20:05.021200Z

i'm working with this on a daily basis

Perry Fraser 2019-04-26T12:20:37.022Z

Oh I see, I’m sorry.

Perry Fraser 2019-04-26T12:20:42.022200Z

I’m just not to familiar with boot in general.

2019-04-26T12:21:42.023Z

Everything is a bit new and it needs some time to mature. But if you want the benefits of deps.edn it like this atm i'm affraid

2019-04-26T12:21:55.023400Z

The deps.edn tools are not too mature as well

2019-04-29T08:00:12.050700Z

haha I agree! It does what I need, I didn't want to be disrespectful!

seancorfield 2019-04-29T04:04:02.033500Z

Mature enough to run our 82,000 line Clojure code base in production with 30 sub-projects in a mono-repo 🙂

2019-04-26T12:22:25.024Z

I'm not aware of other approaches in Boot (I'm pretty new myself as well)

Perry Fraser 2019-04-26T12:22:37.024200Z

👍

Perry Fraser 2019-04-26T12:24:08.024500Z

It doesn’t seem to like me redefining the repl task.

Perry Fraser 2019-04-26T12:24:37.025100Z

I think I’ll just try manually git cloning and adding it as a local dep. Thanks for the help though!

2019-04-26T12:28:15.025700Z

@me1926 ah true. Add this before deftask repl:

(ns-unmap 'boot.user 'repl)

😄 1
2019-04-26T12:28:26.026Z

the other approach sounds reasonable!

👍 1
flyboarder 2019-04-26T15:57:06.027100Z

@jeroenvandijk there is not currently a built in task for reading a Lein project file

flyboarder 2019-04-26T15:57:24.027700Z

However it’s fairly easy to implement and we recommend it for new users

2019-04-26T20:11:51.027900Z

@wiseman has left the channel