hunterloftis / pbr

a Physically Based Renderer (PBR) in Go
MIT License
1.15k stars 42 forks source link

`make fixtures` is failing #28

Closed agocs closed 6 years ago

agocs commented 6 years ago

On OSX, make fixtures is failing, I think because Dropbox is serving up an HTML document to curl as opposed to a zip file.

make fixtures
curl -L -o fixtures.zip https://www.dropbox.com/sh/ik2vfz1qhtsupgt/AADeLgXNSrcjkhqbY64ng5bRa?dl=1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 72867    0 72867    0     0  36433      0 --:--:--  0:00:02 --:--:-- 35562
unzip -n fixtures.zip -d fixtures -x /
Archive:  fixtures.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of fixtures.zip or
        fixtures.zip.zip, and cannot find fixtures.zip.ZIP, period.
make: *** [fixtures] Error 9
head fixtures.zip
<!DOCTYPE html><html xml:lang="en" class="maestro" xmlns="http://www.w3.org/1999/xhtml"><head><script nonce="uk7tlw+33Lf00M8+n7yt">
window._goch_ = {};
window.addEventListener('click', function(event) {
    'use strict';
    for (var elm = event.target; elm; elm = elm.parentElement) {
        if (elm.id &&
            window._goch_.hasOwnProperty(elm.id) &&
            window._goch_[elm.id].call(elm, event) === false) {
            event.preventDefault();
        }

Running curl and wget on https://www.dropbox.com/sh/ik2vfz1qhtsupgt/AADeLgXNSrcjkhqbY64ng5bRa?dl=1 both give me the same html document, but visiting that in my browser gives me the zip file you'd expect. I'm going to see if I can come up with a fix.

hunterloftis commented 6 years ago

Just moved to google drive instead of dropbox. Give it a shot!