[x] I have updated the CHANGELOG.md file with a description of the addressed issue.
Semantics
Without this PR, we fail silently when neil dep add LIB is called, and there are no stable versions available for LIB.
With this PR, we first check for stable versions, then fall back to the first unstable version.
$ ls
$ neil-dev dep search ham-fisted
:lib com.cnuernber/ham-fisted :version "1.000-beta-90" :description nil
$ neil-dev dep add com.cnuernber/ham-fisted
$ cat deps.edn
{:deps {com.cnuernber/ham-fisted {:mvn/version "1.000-beta-90"}}
:aliases {}}
Considerations
I renamed the old neil/latest-clojars-version to neil/latest-stable-clojars-version, and added a new neil/latest-clojars-version that accepts both stable and unstable versions.
The fallback logic as implemented increases the time a neil dep add call takes, by introducing two extra network requests:
Please answer the following questions and leave the below in as part of your PR.
[x] This PR corresponds to an issue with a clear problem statement.
[x] I have updated the CHANGELOG.md file with a description of the addressed issue.
Semantics
neil dep add LIB
is called, and there are no stable versions available forLIB
.Considerations
I renamed the old
neil/latest-clojars-version
toneil/latest-stable-clojars-version
, and added a newneil/latest-clojars-version
that accepts both stable and unstable versions.The fallback logic as implemented increases the time a
neil dep add
call takes, by introducing two extra network requests: