Live data from Hacker News

Git archive checksums may change

github.blog

11–20 of 255 posts

Re: Git archive checksums may change

#15
post #5

GitHub will need to revert this change. They've just crippled pretty much every "from source" package manager out there.

If those tools incorrectly assume an API contract which doesn't exist, isn't the right answer to fix those tools?

Re: Git archive checksums may change

#16
post #9

Earlier quoted context omitted.

I prefer that tool be adapted to be more resilient and not depend on github particular implementation.

Using SHA hashes when building guarantees that the code that you are building is what you think it is. How else would you verify dependencies like this, GPG signatures would have the same issue if you change the underlying bits.

a git checkout of the code at that particular tag hasn't changed. Just the tarball that git archive generates has.

Re: Git archive checksums may change

#17
Hyrum's Law strikes again. It kind of doesn't matter what you document. If you weren't randomizing your checksum previously [1], you can't just spring this on the community and blame it for the fallout. I'm more shocked that there's resistance from the GitHub team saying "but we documented this isn't stable". Default stance for the team should be rollback & reevaluate an alternate path forward when the scope is this wide (e.g. only generating the new tarballs for future commits going forward).

[1] Apparently googlesource did do this and just had people shift to using GitHub mirrors to avoid this problem.

Re: Git archive checksums may change

#18

Im thinking of all the bazel build rules that are about to break from my last company. Someone will have a fun day updating hundreds of hashes.

If they're using multiple URLs like a good Bazel user then they shouldn't be impacted.
Post reply on HN