マニュアルのinstallコマンドで、bintrayからダウンロードできない
suwa-sh opened this issue · comments
事象
マニュアルのinstallコマンドをコピー&ペーストで実行しても、ダウンロードできない。
バージョン
0.5.1
実行環境
macOS HighSierra
ログ
$ curl \
> --request GET \
> --url "${download_url}" \
> --output "${archive_name}"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
$ ls -l
対応
--location オプションが必要な様子。
$ curl \
> --verbose \
> --request GET \
> --location \
> --url "${download_url}" \
> --output "${archive_name}"
Note: Unnecessary use of -X or --request, GET is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 108.168.243.150...
* TCP_NODELAY set
* Connected to dl.bintray.com (108.168.243.150) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [106 bytes data]
* NPN, negotiated HTTP1.1
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [3591 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Unknown (67):
} [36 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=*.bintray.com
* start date: Nov 9 00:00:00 2017 GMT
* expire date: Nov 9 23:59:59 2019 GMT
* subjectAltName: host "dl.bintray.com" matched cert's "*.bintray.com"
* issuer: C=US; O=GeoTrust Inc.; OU=Domain Validated SSL; CN=GeoTrust DV SSL CA - G3
* SSL certificate verify ok.
> GET /in-house-swagger/in-house-swagger/in-house-swagger-0.5.1.tar.gz HTTP/1.1
> Host: dl.bintray.com
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx
< Date: Tue, 10 Apr 2018 00:27:09 GMT
< Content-Type: application/gzip
< Content-Length: 30183
< Connection: keep-alive
< Content-Disposition: attachment; filename="in-house-swagger-0.5.1.tar.gz"
< Last-Modified: Mon, 09 Apr 2018 00:53:47 GMT
< Cache-Control: max-age=30, must-revalidate
< Accept-Ranges: none
< ETag: e1c3c06c8440839daa3b0af5a5c8c831951505b406f8a098c131007eb3fc7c46
< X-Checksum-Sha1: c25ce2a660138aed96c8943ab8f849227c21beb5
< X-Checksum-Sha2: e1c3c06c8440839daa3b0af5a5c8c831951505b406f8a098c131007eb3fc7c46
<
{ [850 bytes data]
100 30183 100 30183 0 0 20251 0 0:00:01 0:00:01 --:--:-- 20257
* Connection #0 to host dl.bintray.com left intact
$ ls -l
total 163936
-rw-r--r-- 1 OWNER GROUP 30183 2018-04-10 09:27:09 in-house-swagger-0.5.1.tar.gz
@tkhr-sait
リダイレクトを追いかけるようにしないと、bintrayからダウンロードできなくなったみたいなんで
マニュアル修正しますねー