git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] Git v1.9-rc0

From
Jeff King <peff@peff.net>
Date
Jan 23, 2014, 02:09 UTC
Message-ID
<20140123020913.GF17254@sigill.intra.peff.net>
In-Reply-To
<20140122203030.GB14211@milliways>
On Wed, Jan 22, 2014 at 08:30:30PM +0000, Ken Moffat wrote:
>  Two questions: Does regenerating (e.g. if the tarball has dropped
> out of the cache) change its sums (md5sum or similar) ?  In (beyond)
> linuxfromscratch we use md5sums to verify that a tarball has not
> changed.

The tarballs we auto-generate from tags are cached, but they can change if the cached version expires _and_ the archive-generation code changes.

We use "git archive" to generate the tarballs themselves, and then gzip the with "gzip -n". So it should be consistent from run to run. However, very occasionally there are bugfixes in "git archive" which can affect the output. E.g., commit 22f0dcd (archive-tar: split long paths more carefully, 2013-01-05) changes the representation of certain long paths, and generating a tarball with and without it will result in different checksums (for some repos).

So if you are planning on baking md5sums into a package-build system, it is much better to point at "official" releases which are rolled once by the project maintainer, rather than the automatic tag page.

Junio, since you prepare such tarballs[1] anyway for kernel.org, it might be worth uploading them to the "Releases" page of git/git. I imagine there is a programmatic way to do so via GitHub's API, but I don't know offhand. I can look into it if you are interested.

-Peff
Previous: Ken MoffatNext: Junio C Hamano
Message 12 of 20 in “What's cooking in git.git (Jan 2014, #03; Thu, 16)”
  1. Junio C HamanoJan 16, 2014
  2. [ANNOUNCE] Git v1.9-rc0Junio C Hamano, Jan 21, 2014
  3. Javier Domingo CansinoJan 22, 2014
  4. Junio C HamanoJan 22, 2014
  5. Stefan NäweJan 22, 2014
  6. Junio C HamanoJan 22, 2014
  7. Vicent MartíJan 22, 2014
  8. Junio C HamanoJan 22, 2014
  9. Ken MoffatJan 22, 2014
  10. Junio C HamanoJan 22, 2014
  11. Ken MoffatJan 22, 2014
  12. Jeff KingJan 23, 2014
  13. Junio C HamanoJan 23, 2014
  14. Jeff KingJan 24, 2014
  15. Junio C HamanoJan 27, 2014
  16. Jeff KingJan 28, 2014
  17. Kacper KornetJan 27, 2014
  18. Jonathan NiederJan 27, 2014
  19. Kacper KornetJan 28, 2014
  20. Sitaram ChamartyJan 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.