Skip to content

Release 0.4.1: Load data readers when executing outside of a project

Latest
Compare
Choose a tag to compare
@avescodes avescodes released this 28 Oct 14:42
· 7 commits to master since this release

This release fixes a long running bug (#13) where data readers were not loaded when lein-try was executed outside the context of an existing project.

Thanks to some excellent work by @xsc, lein-try now properly loads data readers (think custom reader literals like Datomic's #db/id[:db.part/user]).

You should now be able to do the following:

$ cd $HOME
$ lein try com.datomic/datomic-free
# ...

user=> (require 'datomic.api)
nil
user=> #db/id[:db.part/user]
#db/id[:db.part/user -1000000]

Upgrading

This latest version of lein-try is available on clojars.

To upgrade, modify the lein-try dependency version in your ~/.lein/profiles.clj to "0.4.1":

{:user {:plugins [ ;; ...
                  [lein-try "0.4.1"]
                  ;; ...
                  ]}}