Skip to content

Commit

Permalink
Prefer curl over any other download tools on every systems, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Nov 20, 2024
1 parent 667b31f commit 494d2fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ users)
## Internal
* Make `curl` the default download tool instead of `wget` on macOS [#6304 @kit-ty-kate]
* download tool: Use fetch on DragonFlyBSD and ftp on NetBSD [#6305 @kit-ty-kate]
* Prefer curl over any other download tools on every systems, if available [#6305 @kit-ty-kate]

## Internal: Windows

Expand Down
4 changes: 2 additions & 2 deletions src/repository/opamRepositoryConfig.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ let default = {
let curl = "curl", `Curl in
let tools =
match os with
| FreeBSD | DragonFly -> ["fetch", `Default; curl]
| OpenBSD | NetBSD -> ["ftp", `Default; curl]
| FreeBSD | DragonFly -> [curl; "fetch", `Default]
| OpenBSD | NetBSD -> [curl; "ftp", `Default]
| Linux | Darwin | Cygwin | Win32
| Unix | Other _ -> [curl; "wget", `Default]
in
Expand Down

0 comments on commit 494d2fd

Please sign in to comment.