Can't seem to get correct hash for binary download
Laurence Taylor <[email protected]> Tue, 4 Apr 2023 16:39:22 +0200
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAC67SzHfsnC3WgusXm2iwqd0bAM0i+9vuYrjG6tGqN1x7uu8+A@mail.gmail.com> |
--===============6383120224948629895== Content-Type: multipart/alternative; boundary="000000000000da29c605f883a410" --000000000000da29c605f883a410 Content-Type: text/plain; charset="UTF-8" Hi all. I'm hoping to remove some of the pain in installing direnv on windows by using 0install, but it's distributed as a bare binary and I'm running into problems. Show stopper being that the downloads made by 0install are consistently reporting a different hash to the curl + sha256sum thing I'm using to do the manifest-digest on the binary. info: 0install 2.18 (OCaml version): verbose mode on info: Missing selection of https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml: <implementation> at /mnt/dat/i/prj/bertha/.local/bertha/o/var/0install/cache/interfaces/https%3a%2f% 2fraw.githubusercontent.com %2fohmrun%2f0install_direnv%2fmain%2fDirenv.xml:22:152 info: Checking for GTK plugin at '/mnt/dat/i/prj/bertha/.local/bertha/o/os/linux/prg/0install/lib/0install-gtk/gui_gtk.cmxs' info: Checking for GTK plugin at '/mnt/dat/i/prj/bertha/.local/bertha/o/os/linux/prg/0install/lib/ 0install.net/gui_gtk.cmxs' info: Initialising GTK GUI info: Switching to GLib mainloop... debug: download_icon https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml info: No PNG icons found in https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml debug: download_icon https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml info: No PNG icons found in https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml info: Starting download of feed ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml' debug: download_and_import_feed https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml debug: Download URL ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml'... (for https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml) debug: start_monitoring https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml debug: Scheduling download of https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml info: HTTP GET " https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml" debug: Checking for certificate file "/etc/ssl/certs/ca-certificates.crt" info: Download ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml' completed successfully (2415 bytes) info: Running GnuPG: /usr/bin/gpg --no-secmem-warning --batch --status-fd 1 --keyserver-options no-auto-key-retrieve --verify /tmp/0install-b37581-gpg - debug: Updating ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml' from network; modified at 2023-04-04 16:16 debug: No change info: Updated feed cache checked time for https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml (modified 2023-04-04 16:16) debug: stop_monitoring https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml info: OK button => true info: Missing selection of https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml: <implementation> at https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml:22:152 debug: download_impls: for https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml get 2.32.2 debug: Download URL ' https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv'... (for https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml) debug: start_monitoring https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv debug: Scheduling download of https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv info: HTTP GET " https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv " info: Redirect from ' https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv' to ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv' ( https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv ) debug: Scheduling download of https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv info: HTTP GET " https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv " info: Download ' https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv' completed successfully (8988761 bytes) info: Removing temporary directory '/mnt/dat/i/prj/bertha/.local/bertha/o/var/0install/cache/implementations/tmp-2e3a418d' info: OK button => false info: Reporting error to user: Incorrect manifest -- archive is corrupted. Required digest: sha256=43e7200746d526aec6f37e689dcced23d5e42cfac7022e301d6b37420d625663 Actual digest: sha256=ef1810692d07fb818f121fae5032d69719e982c636e305ff11e3d8955fc5d1cc ... downloading implementation https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml 2.32.2 (id=./o/bins/v2.32.2/gnu/amd64) Raised at Zeroinstall__Fetch.fetcher#download_impls.(fun) in file "src/zeroinstall/fetch.ml", line 648, characters 10-21 Called from Lwt.Sequential_composition.bind.create_result_promise_and_callback_if_deferred.callback in file "src/core/lwt.ml", line 1849, characters 23-26 debug: stop_monitoring https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv Still reading the docs but it's been confusing me the entire day so I thought I'd sent a note in. regards, Loz --000000000000da29c605f883a410 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi all.<br></div><div>I'm hoping to remove some o= f the pain in installing direnv on windows by using 0install, but it's = distributed as a bare binary and I'm running into problems.</div><div><= br></div><div>Show stopper being that the downloads made by 0install are co= nsistently reporting a different hash to the curl + sha256sum thing I'm= using to do the manifest-digest on the binary. <br></div><div><br></div><d= iv><br></div><div><span style=3D"font-family:monospace">info: 0install 2.18= (OCaml version): verbose mode on<br>info: Missing selection of <a href=3D"= https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">h= ttps://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a>= : <implementation> at /mnt/dat/i/prj/bertha/.local/bertha/o/var/0inst= all/cache/interfaces/https%3a%2f%<a href=3D"http://2fraw.githubusercontent.= com">2fraw.githubusercontent.com</a>%2fohmrun%2f0install_direnv%2fmain%2fDi= renv.xml:22:152<br>info: Checking for GTK plugin at '/mnt/dat/i/prj/ber= tha/.local/bertha/o/os/linux/prg/0install/lib/0install-gtk/gui_gtk.cmxs'= ;<br>info: Checking for GTK plugin at '/mnt/dat/i/prj/bertha/.local/ber= tha/o/os/linux/prg/0install/lib/<a href=3D"http://0install.net/gui_gtk.cmxs= ">0install.net/gui_gtk.cmxs</a>'<br>info: Initialising GTK GUI<br>info:= Switching to GLib mainloop...<br>debug: download_icon <a href=3D"https://r= aw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://ra= w.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a><br>info:= No PNG icons found in <a href=3D"https://raw.githubusercontent.com/ohmrun/= 0install_direnv/main/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0= install_direnv/main/Direnv.xml</a><br>debug: download_icon <a href=3D"https= ://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https:= //raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a><br>i= nfo: No PNG icons found in <a href=3D"https://raw.githubusercontent.com/ohm= run/0install_direnv/main/Direnv.xml">https://raw.githubusercontent.com/ohmr= un/0install_direnv/main/Direnv.xml</a><br>info: Starting download of feed &= #39;<a href=3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/mai= n/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0install_direnv/main= /Direnv.xml</a>'<br>debug: download_and_import_feed <a href=3D"https://= raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://r= aw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a><br>debu= g: Download URL '<a href=3D"https://raw.githubusercontent.com/ohmrun/0i= nstall_direnv/main/Direnv.xml'.">https://raw.githubusercontent.com/ohmr= un/0install_direnv/main/Direnv.xml'.</a>.. (for <a href=3D"https://raw.= githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://raw.g= ithubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a>)<br>debug: = start_monitoring <a href=3D"https://raw.githubusercontent.com/ohmrun/0insta= ll_direnv/main/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0instal= l_direnv/main/Direnv.xml</a><br>debug: Scheduling download of <a href=3D"ht= tps://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">htt= ps://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a><b= r>info: HTTP GET "<a href=3D"https://raw.githubusercontent.com/ohmrun/= 0install_direnv/main/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0= install_direnv/main/Direnv.xml</a>"<br>debug: Checking for certificate= file "/etc/ssl/certs/ca-certificates.crt"<br>info: Download '= ;<a href=3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/main/D= irenv.xml">https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Di= renv.xml</a>' completed successfully (2415 bytes)<br>info: Running GnuP= G: /usr/bin/gpg --no-secmem-warning --batch --status-fd 1 --keyserver-optio= ns no-auto-key-retrieve --verify /tmp/0install-b37581-gpg -<br>debug: Updat= ing '<a href=3D"https://raw.githubusercontent.com/ohmrun/0install_diren= v/main/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0install_direnv= /main/Direnv.xml</a>' from network; modified at 2023-04-04 16:16<br>deb= ug: No change<br>info: Updated feed cache checked time for <a href=3D"https= ://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https:= //raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a> (mod= ified 2023-04-04 16:16)<br>debug: stop_monitoring <a href=3D"https://raw.gi= thubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://raw.git= hubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a><br>info: OK b= utton =3D> true<br>info: Missing selection of <a href=3D"https://raw.git= hubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://raw.gith= ubusercontent.com/ohmrun/0install_direnv/main/Direnv.xml</a>: <implement= ation> at <a href=3D"https://raw.githubusercontent.com/ohmrun/0install_d= irenv/main/Direnv.xml:22:152">https://raw.githubusercontent.com/ohmrun/0ins= tall_direnv/main/Direnv.xml:22:152</a><br>debug: download_impls: for <a hre= f=3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.x= ml">https://raw.githubusercontent.com/ohmrun/0install_direnv/main/Direnv.xm= l</a> get 2.32.2<br>debug: Download URL '<a href=3D"https://github.com/= ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv'.">http= s://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/dir= env'.</a>.. (for <a href=3D"https://raw.githubusercontent.com/ohmrun/0i= nstall_direnv/main/Direnv.xml">https://raw.githubusercontent.com/ohmrun/0in= stall_direnv/main/Direnv.xml</a>)<br>debug: start_monitoring <a href=3D"htt= ps://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/di= renv">https://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu= /amd64/direnv</a><br>debug: Scheduling download of <a href=3D"https://githu= b.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv">http= s://github.com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/dir= env</a><br>info: HTTP GET "<a href=3D"https://github.com/ohmrun/0insta= ll_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv">https://github.com/ohmr= un/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv</a>"<br>in= fo: Redirect from '<a href=3D"https://github.com/ohmrun/0install_direnv= /raw/main/o/bins/v2.32.2/gnu/amd64/direnv">https://github.com/ohmrun/0insta= ll_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv</a>' to '<a href= =3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2= .32.2/gnu/amd64/direnv">https://raw.githubusercontent.com/ohmrun/0install_d= irenv/main/o/bins/v2.32.2/gnu/amd64/direnv</a>' (<a href=3D"https://raw= .githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2.32.2/gnu/amd64= /direnv">https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bi= ns/v2.32.2/gnu/amd64/direnv</a>)<br>debug: Scheduling download of <a href= =3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins/v2= .32.2/gnu/amd64/direnv">https://raw.githubusercontent.com/ohmrun/0install_d= irenv/main/o/bins/v2.32.2/gnu/amd64/direnv</a><br>info: HTTP GET "<a h= ref=3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/main/o/bins= /v2.32.2/gnu/amd64/direnv">https://raw.githubusercontent.com/ohmrun/0instal= l_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv</a>"<br>info: Download &= #39;<a href=3D"https://raw.githubusercontent.com/ohmrun/0install_direnv/mai= n/o/bins/v2.32.2/gnu/amd64/direnv">https://raw.githubusercontent.com/ohmrun= /0install_direnv/main/o/bins/v2.32.2/gnu/amd64/direnv</a>' completed su= ccessfully (8988761 bytes)<br>info: Removing temporary directory '/mnt/= dat/i/prj/bertha/.local/bertha/o/var/0install/cache/implementations/tmp-2e3= a418d'<br>info: OK button =3D> false<br>info: Reporting error to use= r: Incorrect manifest -- archive is corrupted.<br>Required digest: sha256= =3D43e7200746d526aec6f37e689dcced23d5e42cfac7022e301d6b37420d625663<br>Actu= al digest: sha256=3Def1810692d07fb818f121fae5032d69719e982c636e305ff11e3d89= 55fc5d1cc<br>... downloading implementation <a href=3D"https://raw.githubus= ercontent.com/ohmrun/0install_direnv/main/Direnv.xml">https://raw.githubuse= rcontent.com/ohmrun/0install_direnv/main/Direnv.xml</a> 2.32.2 (id=3D./o/bi= ns/v2.32.2/gnu/amd64)<br>Raised at Zeroinstall__Fetch.fetcher#download_impl= s.(fun) in file "src/zeroinstall/<a href=3D"http://fetch.ml">fetch.ml<= /a>", line 648, characters 10-21<br>Called from Lwt.Sequential_composi= tion.bind.create_result_promise_and_callback_if_deferred.callback in file &= quot;src/core/<a href=3D"http://lwt.ml">lwt.ml</a>", line 1849, charac= ters 23-26<br><br>debug: stop_monitoring <a href=3D"https://github.com/ohmr= un/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv">https://github= .com/ohmrun/0install_direnv/raw/main/o/bins/v2.32.2/gnu/amd64/direnv</a></s= pan></div><div><br></div><div>Still reading the docs but it's been conf= using me the entire day so I thought I'd sent a note in.</div><div><br>= </div><div>regards,</div><div>Loz<br></div></div> --000000000000da29c605f883a410-- --===============6383120224948629895== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6383120224948629895== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel --===============6383120224948629895==--