Failure to resolve from :default-deps when the :deps coordinate is falsey/unresolvable

Description

Given a deps map

{:deps {org.clojure/clojure nil}

And resolver options

{:default-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}

the documented and intended behavior seems to be that of resolving

{:deps {org.clojure/clojure {:mvn/version "1.9.0"}}}

The actual behavior however is

ExceptionInfo Coordinate type not loaded for library org.clojure/clojure in coordinate nil clojure.core/ex-info (core.clj:4739)

It should be possible to resolve coordinates in the :default-deps mapping when no meaningful coordinate was provided in the :deps mapping.

Environment

None

Attachments

1

Activity

Show:

Alex Miller September 15, 2018 at 1:49 PM

Released in tools.deps.alpha 0.5.452

Alex Miller September 15, 2018 at 1:34 PM

That was the correct bug location, but not the correct fix. Need to use the use-coord (resolved coord) at that point, not the coord-id. Committed test in patch and correct code fix.

Completed

Details

Assignee

Reporter

Patch

Priority

Created September 15, 2018 at 12:38 AM
Updated September 15, 2018 at 1:49 PM
Resolved September 15, 2018 at 1:49 PM