Please sign in to comment.
Fix #742, explicit middleware load error
Don't call set-profiles from leiningen.core.project/read because it calls load-middleware, and we want to wait to do that for the first time in init-project. To solve this, I added init-profiles which is called by both read and set-profiles. Also clean up init-project and move code duplicated in set-profiles into activate-middleware. We now always load hooks and certificates when activating middleware, and load-certificates is actually called twice in the course of init-project. To make sure load-certificates is idempotent, we memoized leiningen.core.ssl/register-scheme.
- Loading branch information...
Showing with 38 additions and 23 deletions.