misspell
misspell copied to clipboard
Installation fails using the install script
Attempting to install misspell using install-misspell.sh fails. The failure appears to be the incorrect version computed here.
$ curl -s -L -o ./install-misspell.sh https://git.io/misspell
$ sh -x ./install-misspell.sh
+ set -e
+ cat /dev/null
+ cat /dev/null
+ OWNER=client9
+ REPO=misspell
+ BINARY=misspell
+ FORMAT=tar.gz
+ uname_os
+ uname -s
+ tr [:upper:] [:lower:]
+ os=linux
+ echo linux
+ OS=linux
+ uname_arch
+ uname -m
+ arch=x86_64
+ arch=amd64
+ echo amd64
+ ARCH=amd64
+ PREFIX=client9/misspell
+ PLATFORM=linux/amd64
+ GITHUB_DOWNLOAD=https://github.com/client9/misspell/releases/download
+ uname_os_check linux
+ uname_os
+ uname -s
+ tr [:upper:] [:lower:]
+ os=linux
+ echo linux
+ os=linux
+ return 0
+ uname_arch_check amd64
+ uname_arch
+ uname -m
+ arch=x86_64
+ arch=amd64
+ echo amd64
+ arch=amd64
+ return 0
+ parse_args
+ BINDIR=./bin
+ getopts b:h? arg
+ shift 0
+ VERSION=
+ check_platform
+ is_supported_platform linux/amd64
+ platform=linux/amd64
+ found=1
+ found=0
+ return 0
+ true
+ adjust_version
+ [ -z ]
+ echo client9/misspell: checking GitHub for latest version
client9/misspell: checking GitHub for latest version
+ github_last_release client9/misspell
+ owner_repo=client9/misspell
+ giturl=https://api.github.com/repos/client9/misspell/releases/latest
+ github_api - https://api.github.com/repos/client9/misspell/releases/latest
+ local_file=-
+ source_url=https://api.github.com/repos/client9/misspell/releases/latest
+ header=
+ test -z
+ http_download - https://api.github.com/repos/client9/misspell/releases/latest
+ local_file=-
+ source_url=https://api.github.com/repos/client9/misspell/releases/latest
+ header=
+ headerflag=
+ destflag=
+ is_command curl
+ command -v curl
+ cmd=curl --fail -sSL
+ destflag=-o
+ headerflag=-H
+ [ -z ]
+ curl --fail -sSL -o - https://api.github.com/repos/client9/misspell/releases/latest
+ html={"url":"https://api.github.com/repos/client9/misspell/releases/6669454","assets_url":"https://api.github.com/repos/client9/misspell/releases/6669454/assets","upload_url":"https://uploads.github.com/repos/client9/misspell/releases/6669454/assets{?name,label}","html_url":"https://github.com/client9/misspell/releases/tag/v0.3.0","id":6669454,"tag_name":"v0.3.0","target_commitish":"master","name":"v0.3.0","draft":false,"author":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2017-06-10T04:48:07Z","published_at":"2017-06-10T04:50:54Z","assets":[{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070519","id":4070519,"name":"misspell_0.3.0_linux_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2132068,"download_count":408,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_linux_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070517","id":4070517,"name":"misspell_0.3.0_mac_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2261854,"download_count":108,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_mac_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070518","id":4070518,"name":"misspell_0.3.0_windows_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2121306,"download_count":8,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_windows_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070516","id":4070516,"name":"misspell_checksums.txt","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"text/plain; charset=utf-8","state":"uploaded","size":300,"download_count":490,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_checksums.txt"}],"tarball_url":"https://api.github.com/repos/client9/misspell/tarball/v0.3.0","zipball_url":"https://api.github.com/repos/client9/misspell/zipball/v0.3.0","body":"## Changelog\r\n\r\n* Windows release support\r\n* Additional new misspellings\r\n* Better download and install `curl -L https://git.io/misspell | bash`\r\n\r\n---\r\nAutomated with @goreleaser\r\nBuilt with go version go1.8.3 linux/amd64\r\n"}
+ grep -m 1 "tag_name":
+ echo {"url":"https://api.github.com/repos/client9/misspell/releases/6669454","assets_url":"https://api.github.com/repos/client9/misspell/releases/6669454/assets","upload_url":"https://uploads.github.com/repos/client9/misspell/releases/6669454/assets{?name,label}","html_url":"https://github.com/client9/misspell/releases/tag/v0.3.0","id":6669454,"tag_name":"v0.3.0","target_commitish":"master","name":"v0.3.0","draft":false,"author":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2017-06-10T04:48:07Z","published_at":"2017-06-10T04:50:54Z","assets":[{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070519","id":4070519,"name":"misspell_0.3.0_linux_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2132068,"download_count":408,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_linux_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070517","id":4070517,"name":"misspell_0.3.0_mac_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2261854,"download_count":108,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_mac_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070518","id":4070518,"name":"misspell_0.3.0_windows_64bit.tar.gz","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":2121306,"download_count":8,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_0.3.0_windows_64bit.tar.gz"},{"url":"https://api.github.com/repos/client9/misspell/releases/assets/4070516","id":4070516,"name":"misspell_checksums.txt","label":"","uploader":{"login":"client9","id":217179,"avatar_url":"https://avatars1.githubusercontent.com/u/217179?v=4","gravatar_id":"","url":"https://api.github.com/users/client9","html_url":"https://github.com/client9","followers_url":"https://api.github.com/users/client9/followers","following_url":"https://api.github.com/users/client9/following{/other_user}","gists_url":"https://api.github.com/users/client9/gists{/gist_id}","starred_url":"https://api.github.com/users/client9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/client9/subscriptions","organizations_url":"https://api.github.com/users/client9/orgs","repos_url":"https://api.github.com/users/client9/repos","events_url":"https://api.github.com/users/client9/events{/privacy}","received_events_url":"https://api.github.com/users/client9/received_events","type":"User","site_admin":false},"content_type":"text/plain; charset=utf-8","state":"uploaded","size":300,"download_count":490,"created_at":"2017-06-10T04:50:54Z","updated_at":"2017-06-10T04:50:54Z","browser_download_url":"https://github.com/client9/misspell/releases/download/v0.3.0/misspell_checksums.txt"}],"tarball_url":"https://api.github.com/repos/client9/misspell/tarball/v0.3.0","zipball_url":"https://api.github.com/repos/client9/misspell/zipball/v0.3.0","body":"## Changelog\r\n\r\n* Windows release support\r\n* Additional new misspellings\r\n* Better download and install `curl -L https://git.io/misspell | bash`\r\n\r\n---\r\nAutomated with @goreleaser\r\nBuilt with go version go1.8.3 linux/amd64\r\n"}+
cut -f4 -d"
+ version=https://api.github.com/repos/client9/misspell/releases/6669454
+ test -z https://api.github.com/repos/client9/misspell/releases/6669454
+ echo https://api.github.com/repos/client9/misspell/releases/6669454
+ VERSION=https://api.github.com/repos/client9/misspell/releases/6669454
+ VERSION=https://api.github.com/repos/client9/misspell/releases/6669454
+ adjust_format
+ true
+ adjust_os
+ true
+ adjust_arch
+ ARCH=64bit
+ true
+ echo client9/misspell: found version https://api.github.com/repos/client9/misspell/releases/6669454 for linux/64bit
client9/misspell: found version https://api.github.com/repos/client9/misspell/releases/6669454 for linux/64bit
+ NAME=misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit
+ TARBALL=misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ TARBALL_URL=https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ CHECKSUM=misspell_checksums.txt
+ CHECKSUM_URL=https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_checksums.txt
+ [ linux = windows ]
+ execute
+ mktmpdir
+ test -z
+ mktemp -d
+ TMPDIR=/tmp/tmp.Kk1Fat2oZh
+ mkdir -p /tmp/tmp.Kk1Fat2oZh
+ echo /tmp/tmp.Kk1Fat2oZh
+ TMPDIR=/tmp/tmp.Kk1Fat2oZh
+ echo client9/misspell: downloading https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
client9/misspell: downloading https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ http_download /tmp/tmp.Kk1Fat2oZh/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ local_file=/tmp/tmp.Kk1Fat2oZh/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ source_url=https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
+ header=
+ headerflag=
+ destflag=
+ is_command curl
+ command -v curl
+ cmd=curl --fail -sSL
+ destflag=-o
+ headerflag=-H
+ [ -z ]
+ curl --fail -sSL -o /tmp/tmp.Kk1Fat2oZh/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz https://github.com/client9/misspell/releases/download/vhttps://api.github.com/repos/client9/misspell/releases/6669454/misspell_https://api.github.com/repos/client9/misspell/releases/6669454_linux_64bit.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
$ exit