technomancy/leiningen — pull request #883 by hyPiRion (2012-12-11 01:57:15+00:00)
Title: Removes run task aliases within metadata. fix #882

This seems to be an issue specifically regarding `with-profile`, as it reapplies profiles through `set-profiles`[[1]](https://github.com/technomancy/leiningen/blob/master/src/leiningen/with_profile.clj#L11). `apply-task` removes the alias from the `:aliases` map, but as `init-profiles` refetches the profile from the metadata, the alias has to be removed from there as well to prevent it from being used again.

This patch removes the task to be run residing within a project's metadata (inside :without-profiles) in addition to the original map, in order to prevent "with-profile" from reviving already used aliases, and thus fixes #882.