Skip to content

Commit 12f93df

Browse files
committed
Revert "Add --repo to archive.install and escript.install (#10121)"
This reverts commit e9ea9de.
1 parent 47a63a7 commit 12f93df

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

lib/mix/lib/mix/local/installer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ defmodule Mix.Local.Installer do
233233

234234
dep_opts =
235235
opts
236-
|> Keyword.take([:organization, :repo])
236+
|> Keyword.take([:organization])
237237
|> Keyword.put(:hex, String.to_atom(package_name))
238238

239239
{:fetcher, {String.to_atom(app_name), version, dep_opts}}

lib/mix/lib/mix/tasks/archive.install.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ defmodule Mix.Tasks.Archive.Install do
5151
from Git, GitHub, or Hex
5252
5353
* `--organization` - specifies an organization to use if fetching the package
54-
from a private Hex repository. Setting `--organization acme` has the same
55-
effect as `--repo hexpm:acme`
56-
57-
* `--repo` - specifies a repo to use when using Hex
54+
from a private Hex repository
5855
5956
"""
6057

@@ -66,7 +63,6 @@ defmodule Mix.Tasks.Archive.Install do
6663
submodules: :boolean,
6764
app: :string,
6865
organization: :string,
69-
repo: :string,
7066
timeout: :integer
7167
]
7268

lib/mix/lib/mix/tasks/escript.install.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ defmodule Mix.Tasks.Escript.Install do
5151
from Git, GitHub, or Hex
5252
5353
* `--organization` - specifies an organization to use if fetching the package
54-
from a private Hex repository. Setting `--organization acme` has the same
55-
effect as `--repo hexpm:acme`
56-
57-
* `--repo` - specifies a repo to use when using Hex
54+
from a private Hex repository
5855
5956
"""
6057

@@ -69,7 +66,6 @@ defmodule Mix.Tasks.Escript.Install do
6966
submodules: :boolean,
7067
app: :string,
7168
organization: :string,
72-
repo: :string,
7369
timeout: :integer
7470
]
7571

lib/mix/test/mix/local/installer_test.exs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,4 @@ defmodule Mix.Local.InstallerTest do
9797
assert Mix.Local.Installer.parse_args(["hex", "a_package"], organization: "my_org") ==
9898
{:fetcher, {:a_package, ">= 0.0.0", [hex: :a_package, organization: "my_org"]}}
9999
end
100-
101-
test "parse_args Hex with repo" do
102-
assert Mix.Local.Installer.parse_args(["hex", "a_package"], repo: "my_repo") ==
103-
{:fetcher, {:a_package, ">= 0.0.0", [hex: :a_package, repo: "my_repo"]}}
104-
end
105100
end

0 commit comments

Comments
 (0)