Fork me on GitHub
#tools-deps
<
2021-11-23
>
Ian Fernandez02:11:26

~/deptest/
.
├── b
│   ├── deps.edn
│   └── pom.xml
└── deps.edn
In this folder I have b folder with a deps.edn, how can I make ./deps.edn resolve deps of ./b/deps.edn when I have:
{:paths ["."]
 :deps {b/b {:local/root "./b"}}}

Ian Fernandez02:11:13

I want to clj -Stree to resolve even the deps that ./b/deps.edn has

seancorfield02:11:01

@d.ian.b I would expect it to -- but unless you are using a very recent version of the CLI, :local/root deps can get "stale" and you need -Sforce to get them picked up.

Ian Fernandez02:11:55

hum nice, it got

Ian Fernandez02:11:18

and if I want to have the test aliases paths/devs for ./b/deps.edn?

seancorfield02:11:21

What does clojure -version say? The most recent version is 1.10.3.1029

seancorfield02:11:42

You can't get aliases from dependencies.

😢 1
Ian Fernandez02:11:12

1.10.3.1020, upgrading now

Ian Fernandez02:11:24

i think i've missed to add some deps

Ian Fernandez02:11:44

I'm taking a look at your posts

Ian Fernandez02:11:16

right now I'm working for a company that uses boot-clj and I'm using macbook m1

seancorfield02:11:27

There are a lot of issues with even how it would work to process aliases from dependencies. Lots of unanswered questions.

👍 1
Ian Fernandez02:11:00

if it got a keyword-name-namespaceish for a project module and aliases got resolved like: clj -M:b/test

seancorfield02:11:16

I'm not getting into it -- that's something complex for the core team to figure out.

👍 1
clojure-spin 1
seancorfield02:11:49

Nearly every simple, obvious suggestion is wrong here 🙂

Ian Fernandez02:11:17

hahahahhaha yeah, I was just asking why something like couldn't get to be possible

seancorfield02:11:32

What if multiple dependencies provided the same alias?

seancorfield02:11:56

What if you had a user-level alias and you add a dependency to a project -- which should have priority?

seancorfield02:11:14

Right now, we have three well-defined contexts in a direct progression: project deps take precedence over user deps which take precedence over root deps.

seancorfield02:11:03

If aliases can start to come from dependencies, there's a whole tree of places for them to start coming from...

👍 1
Ian Fernandez02:11:02

boot doesn't work on it hahaha, I'm trying to migrate stuff to deps, trying to have a deps.edn root for every git repo in the company

seancorfield02:11:25

Our build.clj at work reads the deps.edn from subprojects -- using tools.deps.alpha -- and merges in aliases from them and builds a "basis" for operations (such as running tests).

👍 1
Ian Fernandez02:11:00

if it got a keyword-name-namespaceish for a project module and aliases got resolved like: clj -M:b/test

Ian Fernandez02:11:46

@seancorfield thanks for helping 🙂

Ian Fernandez02:11:00

there's a way to convert build.boot file to a deps.edn file?

Ian Fernandez02:11:06

some project for it?

seancorfield02:11:19

Not that I know of.

seancorfield02:11:54

What we did with boot was move our dependencies to deps.edn files and then add code to boot to read those files. And then we migrated to the CLI 🙂

seancorfield02:11:20

But that was three and a half years ago I think.

Ian Fernandez02:11:41

hum ok, then it need some hard work 😅