Skip to content

Commit 55dbd61

Browse files
author
José Valim
committed
Ensure no lock for rebar dependencies, closes #2561
1 parent 5d60728 commit 55dbd61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/mix/test/mix/rebar_test.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ defmodule Mix.RebarTest do
119119

120120
assert File.exists?("_build/dev/lib/rebar_dep/ebin/rebar_dep.beam")
121121
assert File.exists?("_build/dev/lib/git_rebar/ebin/git_rebar.beam")
122+
123+
# Assert we have no .compile.lock as a .compile.lock
124+
# means we check for the Elixir version on every command.
125+
refute File.exists?("_build/dev/lib/rebar_dep/.compile.lock")
126+
refute File.exists?("_build/dev/lib/git_rebar/.compile.lock")
127+
122128
assert Enum.any?(load_paths, &String.ends_with?(&1, "git_rebar/ebin"))
123129
assert Enum.any?(load_paths, &String.ends_with?(&1, "rebar_dep/ebin"))
124130
end

0 commit comments

Comments
 (0)