Support aborting when version ranges are detected #1197

Closed
xeqi opened this Issue Jun 1, 2013 · 1 comment

Projects

None yet

2 participants

@xeqi
Collaborator
xeqi commented Jun 1, 2013

We could possibly reuse the :pedantic flag and make the system die on :fail or :abort or such.

Acceptance Criteria
Given I am in a project with "bad" dependencies and the pedantic abort flag set
When I run a task
Then lein should print out the dependency information
And it should abort the command
And return a negative code

@xeqi
Collaborator
xeqi commented Jul 18, 2013

For anyone else who might want to do this, it would require checking a :pedantic flag in the project map. Then the leiningen.core.deps stuff should use a repository-session-fn like https://github.com/technomancy/leiningen/blob/master/src/leiningen/deps.clj#L113. If it provides any results in the atoms then it should abort.

@technomancy technomancy was assigned Jul 22, 2013
@technomancy technomancy added a commit that closed this issue Jul 23, 2013
@technomancy Support :pedantic? :abort/:warn.
Move range/overlap detection into l.c.classpath.

Fixes #1197.
5b26b89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment