[MacPorts] #56492: cargo_fetch: Add size to checksums

MacPorts noreply at macports.org
Sat Feb 15 01:37:56 UTC 2020


#56492: cargo_fetch: Add size to checksums
--------------------------+--------------------
  Reporter:  ryandesign   |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by raimue):

 I understand the idea of this request, but the `cargo.crates` option is
 supposed to be generated based on `Cargo.lock`. This file does only
 provide a sha256 as checksum.

 We could modify cargo2port to output a `size` field, but it would need the
 full logic that is now in the port group to determine the download URL,
 fetch the files, verify the sha256 checksum and eventually get the file
 size from disk. These steps will be much more complicated than the simple
 text processing cargo2port does at the moment.

-- 
Ticket URL: <https://trac.macports.org/ticket/56492#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list