Skip to content

Commit

Permalink
Revert Mix changes on app stop
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 15, 2024
1 parent db5324a commit 8c33d62
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/hex/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ defmodule Hex.Application do
Supervisor.start_link(children(), opts)
end

def stop(_state) do
Mix.RemoteConverger.register(nil)

if function_exported?(Mix.SCM, :delete, 1) do
Mix.SCM.delete(Hex.SCM)

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.6.6)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.7.2)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.8.1)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.6.6)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.8.1)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (21.3, 1.7.2)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (22.3, 1.9.4)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (22.3, 1.9.4)

function Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (23.3, 1.10.4)

Mix.SCM.delete/1 is undefined or private

Check warning on line 23 in lib/hex/application.ex

View workflow job for this annotation

GitHub Actions / Test (23.3, 1.10.4)

Mix.SCM.delete/1 is undefined or private
end

:ok
end

if Mix.env() in [:dev, :test] do
defp dev_setup do
:erlang.system_flag(:backtrace_depth, 20)
Expand Down

0 comments on commit 8c33d62

Please sign in to comment.