{"action":"created","issue":{"url":"https://api.github.com/repos/mpeterv/hererocks/issues/27","repository_url":"https://api.github.com/repos/mpeterv/hererocks","labels_url":"https://api.github.com/repos/mpeterv/hererocks/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mpeterv/hererocks/issues/27/comments","events_url":"https://api.github.com/repos/mpeterv/hererocks/issues/27/events","html_url":"https://github.com/mpeterv/hererocks/issues/27","id":161397669,"number":27,"title":"Installing LuaJIT sometimes fails with SHA256 mismatch","user":{"login":"mpeterv","id":6032370,"avatar_url":"https://avatars.githubusercontent.com/u/6032370?v=3","gravatar_id":"","url":"https://api.github.com/users/mpeterv","html_url":"https://github.com/mpeterv","followers_url":"https://api.github.com/users/mpeterv/followers","following_url":"https://api.github.com/users/mpeterv/following{/other_user}","gists_url":"https://api.github.com/users/mpeterv/gists{/gist_id}","starred_url":"https://api.github.com/users/mpeterv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpeterv/subscriptions","organizations_url":"https://api.github.com/users/mpeterv/orgs","repos_url":"https://api.github.com/users/mpeterv/repos","events_url":"https://api.github.com/users/mpeterv/events{/privacy}","received_events_url":"https://api.github.com/users/mpeterv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-21T10:10:03Z","updated_at":"2016-06-21T16:37:10Z","closed_at":null,"body":"For instance, when installing LuaJIT 2.0.4 this can happen:\r\n\r\n```\r\nFetching LuaJIT from https://github.com/LuaJIT/LuaJIT/archive/v2.0.4.tar.gz\r\nVerifying SHA256 checksum\r\nError: SHA256 checksum mismatch for /home/mpeterv/.cache/hererocks/LuaJIT-2.0.4.tar.gz\r\nExpected: d2abdf16bd3556c41c0aaedad76b6c227ca667be8350111d037a4c54fd43abad\r\nObserved: 324f191dcf771310be0fc6496f7282387be9cf8d38b105566226c6cb079e90eb\r\n```\r\n\r\nHappens with LuaJIT 2.1.0-beta2, too. SHA256 for other downloads seemingly don't mismatch. Observed invalid checksums are the same every time.\r\n\r\nComparing normal and invalid files (at least for LuaJIT 2.0.4) shows that the invalid one is almost correct but has extra 7 bytes prepended and appended to it. Prefix is `d0a4f\\r\\n` and suffix is `\\r\\n0\\r\\n\\r\\n`.\r\n\r\nThe failures happen on Travis/Appveyor fairly often but I've only managed to reproduce it locally once."},"comment":{"url":"https://api.github.com/repos/mpeterv/hererocks/issues/comments/227497497","html_url":"https://github.com/mpeterv/hererocks/issues/27#issuecomment-227497497","issue_url":"https://api.github.com/repos/mpeterv/hererocks/issues/27","id":227497497,"user":{"login":"mpeterv","id":6032370,"avatar_url":"https://avatars.githubusercontent.com/u/6032370?v=3","gravatar_id":"","url":"https://api.github.com/users/mpeterv","html_url":"https://github.com/mpeterv","followers_url":"https://api.github.com/users/mpeterv/followers","following_url":"https://api.github.com/users/mpeterv/following{/other_user}","gists_url":"https://api.github.com/users/mpeterv/gists{/gist_id}","starred_url":"https://api.github.com/users/mpeterv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpeterv/subscriptions","organizations_url":"https://api.github.com/users/mpeterv/orgs","repos_url":"https://api.github.com/users/mpeterv/repos","events_url":"https://api.github.com/users/mpeterv/events{/privacy}","received_events_url":"https://api.github.com/users/mpeterv/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:37:10Z","updated_at":"2016-06-21T16:37:10Z","body":"Of course, the \"prefix\" is file length in hexadecimal, so the broken file is just full chunk encoded file. Not sure why GitHub decides to send the whole file in one chunk, or why urlretrieve can't handle it,"}}
{"actor":{"display_login":"mpeterv"}}