Skip to content

Commit 3a290c3

Browse files
authored
Document since for --no-check-cwd + fix typo (elixir-lang#14874)
1 parent 7fa1914 commit 3a290c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/mix/lib/mix/tasks/compile.elixir.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ defmodule Mix.Tasks.Compile.Elixir do
7373
* `--no-verification` - disables code verification, such as unused functions,
7474
deprecation warnings, and type checking. It must be used solely for debugging
7575
alongside `MIX_DEBUG=1`
76-
* `--no-check-cwd` - Elixir stores absolute paths in .beam files, which means rellocating
77-
the project root triggers a full build. Pass this option if you don't want the current
78-
working directory to be checked
76+
* `--no-check-cwd` - (since v1.19.2) Elixir stores absolute paths in .beam files, which means
77+
that relocating the project root triggers a full build. Pass this option if you don't want
78+
the current working directory to be checked
7979
* `--purge-consolidation-path-if-stale PATH` - deletes and purges modules in the
8080
given protocol consolidation path if compilation is required
8181
* `--profile` - if set to `time`, outputs timing information of compilation steps

lib/mix/test/mix/tasks/compile.elixir_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ defmodule Mix.Tasks.Compile.ElixirTest do
118118
end)
119119
end
120120

121-
test "does not recompiles project if cwd changes and --no-check-pwd is given" do
121+
test "does not recompiles project if cwd changes and --no-check-cwd is given" do
122122
in_fixture("no_mixfile", fn ->
123123
Mix.Project.push(MixTest.Case.Sample)
124124
assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == {:ok, []}

0 commit comments

Comments
 (0)