{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2206","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2206/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2206/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2206/events","html_url":"https://github.com/ocaml/opam/issues/2206","id":89303149,"number":2206,"title":"How to make opam ask for HTTP credentials?","user":{"login":"antoine1fr","id":1477815,"avatar_url":"https://avatars.githubusercontent.com/u/1477815?v=3","gravatar_id":"","url":"https://api.github.com/users/antoine1fr","html_url":"https://github.com/antoine1fr","followers_url":"https://api.github.com/users/antoine1fr/followers","following_url":"https://api.github.com/users/antoine1fr/following{/other_user}","gists_url":"https://api.github.com/users/antoine1fr/gists{/gist_id}","starred_url":"https://api.github.com/users/antoine1fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoine1fr/subscriptions","organizations_url":"https://api.github.com/users/antoine1fr/orgs","repos_url":"https://api.github.com/users/antoine1fr/repos","events_url":"https://api.github.com/users/antoine1fr/events{/privacy}","received_events_url":"https://api.github.com/users/antoine1fr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-18T14:06:53Z","updated_at":"2015-07-01T14:35:41Z","closed_at":null,"body":"I've set up a custom opam repository for the company I work for. The packages are protected by HTTP authentication. How can I specify in the 'url' file that opam should prompt the users for their credentials?"},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/117698973","html_url":"https://github.com/ocaml/opam/issues/2206#issuecomment-117698973","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2206","id":117698973,"user":{"login":"antoine1fr","id":1477815,"avatar_url":"https://avatars.githubusercontent.com/u/1477815?v=3","gravatar_id":"","url":"https://api.github.com/users/antoine1fr","html_url":"https://github.com/antoine1fr","followers_url":"https://api.github.com/users/antoine1fr/followers","following_url":"https://api.github.com/users/antoine1fr/following{/other_user}","gists_url":"https://api.github.com/users/antoine1fr/gists{/gist_id}","starred_url":"https://api.github.com/users/antoine1fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoine1fr/subscriptions","organizations_url":"https://api.github.com/users/antoine1fr/orgs","repos_url":"https://api.github.com/users/antoine1fr/repos","events_url":"https://api.github.com/users/antoine1fr/events{/privacy}","received_events_url":"https://api.github.com/users/antoine1fr/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T14:35:41Z","updated_at":"2015-07-01T14:35:41Z","body":"Ok so here the output:\r\n\r\n```\r\n$ OPAMFETCH='curl -u toto -o %{out}% %{url}%' opam install -vvv package\r\nThe following actions will be performed:\r\n  ∗  install package 0.6.0\r\n\r\n=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\n[package: from adg-shm-devel] Repo archive not found\r\n[package: http] Command started\r\n+ curl \"-u\" \"toto\" \"-o\" \"package?at=refs%2Ftags%2Fv0.6.0\" \"https://stash.company.com/plugins/servlet/archive/projects/~ALUCIANI/repos/package?at=refs%2Ftags%2Fv0.6.0\" (CWD=/var/folders/xm/76gqqjb50jb_f61w8_7xy6800000gn/T/opam-81085-42bb52)\r\n- Enter host password for user 'toto':\r\n- \r\n-   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n-                                  Dload  Upload   Total   Spent    Left  Speed\r\n100 56047    0 56047    0     0  88639      0 --:--:-- --:--:-- --:--:-- 88541\r\n[package: http] Command started\r\n+ mv \"/var/folders/xm/76gqqjb50jb_f61w8_7xy6800000gn/T/opam-81085-42bb52/package?at=refs%2Ftags%2Fv0.6.0\" \"/Users/antoine/.opam/packages.dev/package.0.6.0/package?at=refs%2Ftags%2Fv0.6.0\" (CWD=/var/folders/xm/76gqqjb50jb_f61w8_7xy6800000gn/T/opam-81085-42bb52)\r\n[package.0.6.0] https://stash.company.com/plugins/servlet/archive/projects/~ALUCIANI/repos/package?at=refs%2Ftags%2Fv0.6.0 downloaded\r\n\r\n=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\n+ cp \"/Users/antoine/.opam/packages.dev/package.0.6.0/package?at=refs%2Ftags%2Fv0.6.0\" \"/Users/antoine/.opam/4.02.2/build/package.0.6.0/package?at=refs%2Ftags%2Fv0.6.0\"\r\n[package: ./configure] Command started\r\n+ ./configure \"--prefix=/Users/antoine/.opam/4.02.2\" (CWD=/Users/antoine/.opam/4.02.2/build/package.0.6.0)\r\n[ERROR] The compilation of package failed at \"./configure\r\n        --prefix=/Users/antoine/.opam/4.02.2\".\r\n[package: ocamlfind remove] Command started\r\n+ ocamlfind \"remove\" \"package\" (CWD=/Users/antoine/.opam/4.02.2/build/package.0.6.0)\r\n- ocamlfind: [WARNING] No such directory: /Users/antoine/.opam/4.02.2/lib/package\r\n\r\n#=== ERROR while installing package.0.6.0 ======================================#\r\n# opam-version 1.2.2\r\n# os           darwin\r\n# command      ./configure --prefix=/Users/antoine/.opam/4.02.2\r\n# path         /Users/antoine/.opam/4.02.2/build/package.0.6.0\r\n# compiler     4.02.2\r\n# exit-code    127\r\n# env-file     /Users/antoine/.opam/4.02.2/build/package.0.6.0/package-81085-05296d.env\r\n# stdout-file  /Users/antoine/.opam/4.02.2/build/package.0.6.0/package-81085-05296d.out\r\n# stderr-file  /Users/antoine/.opam/4.02.2/build/package.0.6.0/package-81085-05296d.err\r\n\r\n\r\n\r\n=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\nThe following actions failed\r\n  ∗  install package 0.6.0\r\nNo changes have been performed\r\n'opam install -vvv package' failed.\r\n$ pwd\r\n/Users/antoine/.opam/4.02.2/build/package.0.6.0\r\n$ ls\r\npackage-81085-05296d.env        package-81085-05296d.out\r\npackage-81085-05296d.err        package?at=refs%2Ftags%2Fv0.6.0\r\npackage-81085-05296d.info\r\n$ file package\\?at\\=refs%2Ftags%2Fv0.6.0 \r\npackage?at=refs%2Ftags%2Fv0.6.0: Zip archive data, at least v1.0 to extract\r\n```\r\n\r\nAs I said earlier, the Zip archive doesn't seem to be decompressed. I can't see the final folder in `~/.opam/<compiler>/build/package/`."}}