[MacPorts] #65647: leiningen: handling codeberg releases

MacPorts noreply at macports.org
Wed Aug 10 00:01:53 UTC 2022


#65647: leiningen: handling codeberg releases
-------------------------+-----------------------
 Reporter:  kakuhen      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.2
 Keywords:               |       Port:  leiningen
-------------------------+-----------------------
 Upstream recently moved to Codeberg. In the previous update to Leiningen,
 I noted to grab releases from Codeberg from now on. However, neither
 upstream nor I anticipated attachments in Codeberg to be UUIDs.



 Here is an example involving Leiningen release 2.9.9.

 GitHub:
 https://github.com/technomancy/leiningen/releases/download/2.9.9/leiningen-2.9.9-standalone.jar

 Codeberg: https://codeberg.org/attachments/60dddfb3-74f1-4177-945a-
 a4ccfe8f7d88

 Of course, we can easily fix this issue by setting a variable that
 contains the UUID then finding a way to translate this into a concrete
 file name, which seems to be provided in HTTP/2 headers. Example below
 {{{
 ~ % curl -I  https://codeberg.org/attachments/60dddfb3-74f1-4177-945a-
 a4ccfe8f7d88
 HTTP/2 200
 access-control-expose-headers: Content-Disposition
 cache-control: private, max-age=300
 content-disposition: inline;
 filename*=UTF-8''leiningen-2.9.9-standalone.jar
 content-length: 13201118
 content-type: application/octet-stream
 ...
 }}}

 Thoughts?

-- 
Ticket URL: <https://trac.macports.org/ticket/65647>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list