[MacPorts] #68088: gr-adapt @20200630-13245e3f_7: checksum mismatch

MacPorts noreply at macports.org
Thu Sep 14 09:55:27 UTC 2023


#68088: gr-adapt @20200630-13245e3f_7: checksum mismatch
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  ra1nb0w
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:
      Port:  gr-adapt    |
-------------------------+----------------------

Comment (by ryandesign):

 `github.setup` takes between 3 and 5 parameters. It sets `git.branch` to
 the concatenation of the 4th parameter, the 3rd parameter, and the 5th
 parameter. It indicates what you want to download.

 The most typical use case is to download a versioned tag. If the tag name
 for example is v1.2.3, then you call `github.setup` with `1.2.3` in the
 3rd parameter, `v` in the 4th parameter, and leave the 5th parameter
 empty, and `github.setup` will set `git.branch` to `v1.2.3` for you.

 Another use case is to download from a specific commit. In that case, you
 call `github.setup` with the commit hash in the 3rd parameter and leave
 the 4th and 5th parameters empty, and `github.setup` sets `git.branch` to
 the commit hash for you.

 By later overwriting `git.branch`, you are instructing MacPorts to
 download from something else. In this Portfile, by setting `git.branch
 maint-3.8`, you're instructing MacPorts to download from the head of the
 maint-3.8 branch, which is not something we want to do, because it will
 cause checksum mismatches every time somebody commits something to that
 branch.

 In combination with a developer name and repository name, a tag name or
 commit hash are fully sufficient to tell git what to download. There is no
 need, and no way, to specify what branch that commit or tag was from.

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


More information about the macports-tickets mailing list