haskell / haskell/cabal

Latest APK fails with wget "unrecognized option" error

Open
#6,126 6 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/get re: http-transport type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**

As above.

**To Reproduce**
Steps to reproduce the behavior:

```
$ docker run -it docker:stable sh
/ # apk add --no-cache cabal ghc
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/3) Installing gmp (6.1.2-r1)
(2/3) Installing libffi (3.2.1-r6)
(3/3) Installing cabal (2.4.1.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 36 MiB in 18 packages
/ # cabal v2-install pandoc
dieVerbatim: user error (cabal: '/usr/bin/wget' exited with an error:
/usr/bin/wget: unrecognized option: input-file=-
BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.

Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document
FILE]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
[-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL...

Retrieve files via HTTP or FTP

--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y on/off Use proxy
)
/ # cabal --version
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library
```

**System informataion**
- Arch Linux

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `docker run -it docker:stable sh`, then install `cabal` and run `cabal v2-install pandoc` to trace how cabal invokes wget. Done means the command no longer fails with BusyBox wget's `unrecognized option: input-file=-` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, haskell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.