Clojure - requires several versions of the library in the project

Everything is in the header, but here is a usage example:

the function had a first parameter, such as:

(my-fn "a.b.c" ...)

What now in the new version has become:

(my-fn ... ["a", "b", "c"])

Can I :requirespecify a specific version of the library? For example:

:require my.util.lib :as newlib     ;; new version
:require my.util.lib@v0.0.1 :as lib ;; old library

Then it will allow you to transfer this library use file to each file.

+4
source share
1 answer

As mentioned in the comments, I believe that this Osgiis the only sure way to achieve this, and probably it’s not worth the effort to set it up.

? , , , , .

+3

Source: https://habr.com/ru/post/1607092/


All Articles