deps-try icon indicating copy to clipboard operation
deps-try copied to clipboard

Error when trying dep without namespace

Open jeroenvandijk opened this issue 2 years ago • 2 comments

I tried deps-try amazonica "0.3.165" which results in an error Could not find path '***/amazonica'

I should have tried deps-try amazonica/amazonica "0.3.165" instead, and then things work as expected.

This might not be obvious for new users. I also had to think for a bit. And this would also not be obvious by reading the README of Amazonica where it is still [amazonica "0.3.165"].

When there is no namespace maybe if the directory doesn't exist (in this case amazonica), deps-try could try to resolve it as a dependency?

(*) tested with version deps-try-dev v0.8.0

jeroenvandijk avatar Oct 31 '23 12:10 jeroenvandijk

I was just thinking about this recently and was wondering if this is an expectation, so thanks for bringing this up 👍🏻

I think it's unwanted to make deps-try foo automatically work as deps-try foo/foo as this would allow for continuing not using a group-id. Also clashing with a planned command-style CLI, e.g. deps-try recipes [ls|help].

I think an error with a did-you-mean-message would be apt - which could be implemented as a maven/clojars-search and so would also work for someone trying deps-try malli.

eval avatar Nov 01 '23 10:11 eval

Ah cool. Yeah I like your proposal more. I think it is less confusing and more consistent. And like what you said, it would indeed also help promote using the group-id.

jeroenvandijk avatar Nov 01 '23 12:11 jeroenvandijk