Skip to content

Commit

Permalink
Fix local installer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 27, 2024
1 parent ede345f commit afc99e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/mix/test/mix/local/installer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ defmodule Mix.Local.InstallerTest do
assert config[:app] == :git_repo
assert config[:deps_path] =~ ~r/mix-local-installer-fetcher-.*\/deps/
assert config[:lockfile] =~ ~r/mix-local-installer-fetcher-.*\/mix.lock/
after
purge([GitRepo.MixProject, Mix.Local.Installer.MixProject])
end

test "parse_args Git" do
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/test/mix/tasks/archive_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule Mix.Tasks.ArchiveTest do
assert File.dir?(tmp_path("userhome/.mix/archives/git_repo-0.1.0/git_repo-0.1.0/ebin"))
end)
after
purge([GitRepo.Archive, GitRepo.MixProject])
purge([GitRepo.Archive, GitRepo.MixProject, Mix.Local.Installer.MixProject])
end

test "archive install, update, and uninstall life cycle" do
Expand Down
6 changes: 3 additions & 3 deletions lib/mix/test/mix/tasks/escript_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ defmodule Mix.Tasks.EscriptTest do
require Application
true = Application.compile_env!(:git_repo, :escript_config)
defmodule GitRepo do
defmodule GitRepo.Escript do
def main(_argv) do
IO.puts("TEST")
end
Expand All @@ -348,7 +348,7 @@ defmodule Mix.Tasks.EscriptTest do
use Mix.Project
def project do
[app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo]]
[app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo.Escript]]
end
end
""")
Expand All @@ -364,7 +364,7 @@ defmodule Mix.Tasks.EscriptTest do
assert System.cmd("escript", [escript_path]) == {"TEST\n", 0}
end)
after
purge([GitRepo, GitRepo.MixProject])
purge([GitRepo.Escript, GitRepo.MixProject, Mix.Local.Installer.MixProject])
end

defp push_project_with_config(module, config \\ []) do
Expand Down

0 comments on commit afc99e2

Please sign in to comment.