Skip to content

Commit 3a11680

Browse files
authored
Merge pull request #6304 from kit-ty-kate/curl-macos
Make curl the default download tool instead of wget on macOS
2 parents d45aa58 + 16a2019 commit 3a11680

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

master_changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ users)
115115
## Shell
116116

117117
## Internal
118+
* Make `curl` the default download tool instead of `wget` on macOS [#6304 @kit-ty-kate]
118119

119120
## Internal: Windows
120121

src/client/opamInitDefaults.ml

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ let req_dl_tools () =
9696
let msg =
9797
Some "A download tool is required, check env variables OPAMCURL or OPAMFETCH"
9898
in
99+
(* Keep synchronised with [OpamRepositoryConfig.default] *)
99100
let default =
100101
[
101102
["curl"; "wget"], msg, Some not_open_free_bsd_filter;

src/repository/opamRepositoryConfig.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ type 'a options_fun =
5353
'a
5454

5555
let default = {
56+
(* Keep synchronised with [OpamInitDefaults.req_dl_tools] *)
5657
download_tool = lazy (
5758
let os = OpamStd.Sys.os () in
5859
try
5960
let curl = "curl", `Curl in
6061
let tools =
6162
match os with
62-
| Darwin -> ["wget", `Default; curl]
63-
| FreeBSD -> ["fetch", `Default ; curl]
63+
| FreeBSD -> ["fetch", `Default; curl]
6464
| OpenBSD -> ["ftp", `Default; curl]
6565
| _ -> [curl; "wget", `Default]
6666
in

0 commit comments

Comments
 (0)