tools-deps

dpsutton 2024-02-27T20:05:38.728239Z

Is it possible to prep a local root dependency? I’m running into an issue

❯ clj -Sdeps '{:deps {mb/macaw {:local/root "/Users/dan/projects/work/macaw"}}}' -X:deps prep
Error building classpath. The following libs must be prepared before use: [mb/macaw]
i’m trying to prep a local root, and it’s telling me I must prep it. I’m on 1.11.1.1435 . I know it’s kinda silly to prep a local root but shouldn’t this work?

dpsutton 2024-02-27T20:10:03.487739Z

it works if i make a deps.edn but not if i use -Sdeps

clj -X:deps prep
Prepping mb/macaw in /Users/dan/projects/work/macaw
[logging and stuff]

Alex Miller (Clojure team) 2024-02-27T20:20:05.642409Z

-Sdeps is only going to apply to the call to prep

Alex Miller (Clojure team) 2024-02-27T20:20:44.814239Z

To pass extra deps, use :extra … args to prep

dpsutton 2024-02-27T20:20:52.051839Z

ah gotcha

dpsutton 2024-02-27T20:20:56.037849Z

thanks