forked from technomancy/leiningen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix technomancy#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
2 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters