-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependency resolution issue after lein2 clean #8
Comments
Except that drawbridge doesn't require This same problem will occur when using any library that doesn't require a newer version of ring, because ring itself only specifies a "soft" version number dependency on ring-core. If that were changed to e.g. Maybe this is something @weavejester would consider for future releases? |
I tend to steer clear of version ranges for these reasons. |
Like most "X considered harmful" sorts of posts, some subtleties and certain circumstances that are glossed over. Version ranges are sometimes indispensable. @ccfontes I would suggest changing your ring dependency(ies) to a version that sets |
There may be rare circumstances where version ranges are useful, but in general I find they're more trouble than they're worth. For example, if In general it's best to stick with soft version numbers, and to remember that the closer dependencies take priority over the latter ones. This can cause problems, but they can be resolved by specifying explicit dependencies in your project file. Problems with version ranges, particularly hard ones, are not so easily to resolve. |
Using |
replication: with lein2 and after doing
lein2 clean
, thenlein2 run
and it outputs:Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: Could not locate ring/middleware/head__init.class or ring/middleware/head.clj on classpath:
suggestion: drawbridge needs its dependency "ring-core" updated to at least "1.1.0".
The text was updated successfully, but these errors were encountered: