ocaml-ppx / ppx_tools

Tools for authors of ppx rewriters
MIT License
134 stars 39 forks source link

proper release for 5.0 #61

Closed samoht closed 5 years ago

samoht commented 7 years ago

ppx_tools.5.0 upstream url is pointing to a non-stable GitHub url:

$ opam info ppx_tools.5.0 -f upstream-url
https://github.com/ocaml-ppx/ppx_tools/tarball/f70ca1d07d565989a0041e312e8efc00ff2ad87e

that archive is re-generated by GitHub regularly so its md5 is regularly changing. Would it be possible to use a proper release instead? The current 5.0 release doesn't point to the same SHA1 (not sure why) but it could be nice if it would -- it's seem that GitHub cache for release tarball is much more long-lived in practice (we don't see many md5 changes). It is probably better to upload an archive to that release to be sure that the md5 will never change anymore. topkg publish could help to do this automatically.

dansanabria commented 6 years ago

is this why I keep getting this when doing opam install ppx_tools :


=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] Bad checksum for /home/opam/.opam/packages.dev/ppx_tools.5.0/f70ca1d07d565989a0041e312e8efc00ff2ad87e:
          - 1e18ffaa90d51cba9e6d5eb7bd186637 [expected result]
          - 5e1a86ff323fe772d69ca2d25abc2c9d [actual result]
        This may be fixed by running `opam update`.

[ERROR] The sources of the following couldn't be obtained, aborting:
          - ppx_tools.5.0
        (This may be fixed by running 'opam update')
opam@5aee1b375028:~$

`
dansanabria commented 6 years ago

Please ignore my previous comment. Pulling the latest docker image have fixed the error above.

UPDATE: fixed on ocaml/opam:fedora docker image but ocaml/opam (debian) still experiences the same error.

XVilka commented 5 years ago

Can be closed now, I believe?

samoht commented 5 years ago

Thanks for the reminder :-)