From 36e28aaf78b1724fdab565aacd38b04dc399a7d6 Mon Sep 17 00:00:00 2001 From: Jan Schlosser Date: Fri, 12 Jul 2019 15:01:56 +0200 Subject: [PATCH] Fix `after_cleanup` plugin call --- lib/mix/lib/releases/plugins/plugin.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mix/lib/releases/plugins/plugin.ex b/lib/mix/lib/releases/plugins/plugin.ex index ed9ee0c8..3d9f57b6 100644 --- a/lib/mix/lib/releases/plugins/plugin.ex +++ b/lib/mix/lib/releases/plugins/plugin.ex @@ -163,7 +163,7 @@ defmodule Mix.Releases.Plugin do Run the `c:after_cleanup/2` callback of all plugins of `release`. """ @spec after_cleanup(Release.t(), [String.t()]) :: :ok | {:error, term} - def after_cleanup(release, args), do: run(release.profile.plugins, :after_package, args) + def after_cleanup(release, args), do: run(release.profile.plugins, :after_cleanup, args) @spec call(atom(), Release.t()) :: {:ok, term} | {:error, {:plugin, term}} defp call(callback, release) do