[MacPorts] #68105: tree-sitter-go-mod @1.0.0: checksum mismatch due to upstream repository rename

MacPorts noreply at macports.org
Thu Aug 31 13:27:26 UTC 2023


#68105: tree-sitter-go-mod @1.0.0: checksum mismatch due to upstream repository
rename
------------------------+--------------------------------
 Reporter:  ryandesign  |      Owner:  amake
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.1
 Keywords:              |       Port:  tree-sitter-go-mod
------------------------+--------------------------------
 {{{
 $ sudo port clean --all tree-sitter-go-mod
 --->  Cleaning tree-sitter-go-mod
 $ sudo port fetch --no-mirrors tree-sitter-go-mod
 --->  Fetching distfiles for tree-sitter-go-mod
 --->  Attempting to fetch tree-sitter-go-mod-1.0.0.tar.gz from
 https://codeload.github.com/camdencheek/tree-sitter-go-
 mod/legacy.tar.gz/v1.0.0?dummy=
 $ sudo port checksum tree-sitter-go-mod
 --->  Verifying checksums for tree-sitter-go-mod
 Error: Checksum (rmd160) mismatch for tree-sitter-go-mod-1.0.0.tar.gz
 Error: Checksum (sha256) mismatch for tree-sitter-go-mod-1.0.0.tar.gz
 Error: Checksum (size) mismatch for tree-sitter-go-mod-1.0.0.tar.gz
 Error: Failed to checksum tree-sitter-go-mod: Unable to verify file
 checksums
 Error: See /opt/local/var/macports/logs/_private_tmp/tree-sitter-go-
 mod/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port tree-sitter-go-mod failed
 }}}

 This was originally [https://lists.macports.org/pipermail/macports-
 users/2023-August/052192.html reported on the mailing list].

 Only users who happen to be closest to a GitHub distribution site will see
 this problem; users who are closer to a MacPorts mirror will get the
 "right" file from us.

 The difference between the file MacPorts originally mirrored and the one
 we get from GitHub now is only in the extracted directory name; the
 contents are identical:

 {{{
 $ ls -ld macports/c* upstream/c*
 drwxr-xr-x  15 rschmidt  wheel  480 May 16  2022 macports/camdencheek-
 tree-sitter-gomod-4a65743
 drwxr-xr-x  15 rschmidt  wheel  480 May 16  2022 upstream/camdencheek-
 tree-sitter-go-mod-4a65743
 }}}

 It looks like the repository name was originally `tree-sitter-go-mod` and
 that's also what's specified in the Portfile. But
 [https://github.com/camdencheek/tree-sitter-go-mod/issues/9 a user
 reported] being confused because this was inconsistent with the project's
 main function which is named `tree_sitter_gomod`. As a result, the
 developer changed the repository name to `tree-sitter-gomod`. This in turn
 caused the automatically-generated tarballs to have a different enclosing
 directory name and different checksums which
 [https://github.com/camdencheek/tree-sitter-go-mod/issues/10 caused
 problems for others] and so the change was reverted and the repository was
 renamed back to `tree-sitter-go-mod`, changing the checksums and enclosing
 directory name of the automatically-generated tarballs back to what they
 originally were.

 Unfortunately it looks like
 [changeset:031c233c05a323fc217072d73c64388f424069b6/macports-ports
 MacPorts updated tree-sitter-go-mod to 1.0.0] at an inopportune time
 during the brief interval when the repository name was changed. Now that
 it is "back to normal", we are the ones experiencing the checksum
 mismatches.

 The simplest fix will be to set `master_sites macports_distfiles` until
 the next version is released.

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


More information about the macports-tickets mailing list