pkg mismatched checksum on package due to newline

14 views
Skip to first unread message

Neil Van Dyke

unread,
Feb 25, 2016, 4:55:30 PM2/25/16
to Racket-Dev List
Looks like pkg checksum checking is sensitive to whether newline is in the checksum file.

pkg: mismatched checksum on package
package source: http://www.neilvandyke.org/racket/scgi.zip
expected: "dc536ce0dd452425fb606512eb819d8371425e3c\n"
got: "dc536ce0dd452425fb606512eb819d8371425e3c"
context...:
/home/ubuntu/local/new-plt/racket/collects/pkg/private/stage.rkt:106:0: stage-package/info46
/home/ubuntu/local/new-plt/racket/collects/pkg/private/stage.rkt:693:0: pkg-stage62
/home/ubuntu/local/new-plt/racket/collects/pkg/private/content.rkt:39:0: get-pkg-content20
/home/ubuntu/local/new-plt/racket/collects/racket/contract/private/arrow-val-first.rkt:324:3
/home/ubuntu/local/new-plt/pkgs/plt-services/meta/pkg-index/official/update.rkt:109:0: update-from-content
.../more-scheme.rkt:261:28
/home/ubuntu/local/new-plt/racket/collects/racket/private/list.rkt:264:4: loop
/home/ubuntu/local/new-plt/pkgs/plt-services/meta/pkg-index/official/update.rkt:122:0: do-update!
/home/ubuntu/local/new-plt/pkgs/plt-services/meta/pkg-index/official/common.rkt:133:0: run!
/home/ubuntu/local/new-plt/pkgs/plt-services/meta/pkg-index/official/update.rkt:139:22


Jay McCarthy

unread,
Feb 25, 2016, 5:03:37 PM2/25/16
to Neil Van Dyke, Racket-Dev List
The checksum file as bytes IS the checksum. The fact that many
checksums are git hashes is a coincidence.
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-dev+...@googlegroups.com.
> To post to this group, send email to racke...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-dev/56CF7850.3040302%40neilvandyke.org.
> For more options, visit https://groups.google.com/d/optout.



--
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

"Wherefore, be not weary in well-doing,
for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
- D&C 64:33
Reply all
Reply to author
Forward
0 new messages