-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add warning when checkouts contain project versions not matching declared dependencies #686
Comments
I ran into a case where I had forgotten about some checkouts and then saw odd behavior and didn't put the two together. Phil and I discussed it some. A warning would have been very helpful. I support Hugo's request above. Perhaps an additional situation should trigger a warning:
This covers the case where I've checked out a dep, put it in the checkouts dir, made some tweaks to its code, but haven't bothered to update the main project's :dependencies or the dep's project.clj.
|
Gonna give it a shot. This'll be my first open-source Clojure work, though (I use it at work). |
@j-po: thanks for looking into this! If there's anything you wonder about, want to be reviewed or similar, feel free to ask in this issue – or me directly if you prefer that. |
Is this already done? I can see a commit but this issue is still open. |
It's not yet, sorry. My life got complicated and I haven't gotten s chance On Sun, Jun 26, 2016, 20:53 Mayank Jain notifications@github.com wrote:
|
…on not matching parent project's dependency version, and a checkout-project version overriding a release version, fixes (technomancy#686)
@j-po Would you mind if I fixed this issue? I took a look at it as an entry point to learning the leiningen code base and have a working solution ready for review. @hypirion If so, I've committed my changes, but I have a few questions about the implementation / wouldn't mind a review. My primary concern is for the second warning case:
I implemented this by calling |
When working with checkouts that are symlinks, it is very easy to checkout out a branch in your sub-project's canonical directory, or otherwise modify it, and forget that the sub-project is symlinked. This can lead to a top level project misbehaving for non-obvious reasons.
Please add a warning when a subproject in checkouts contains a project.clj file with a version different to that listed in the top level project's :dependencies.
The text was updated successfully, but these errors were encountered: