Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove homebrew-fork Checksum class and refactor #8388

Merged
merged 1 commit into from
Dec 24, 2014

Conversation

rolandwalker
Copy link
Contributor

  • perform actual checksum calculation within download.rb
  • use an accessor named sha256 instead of sums for checksum data
  • migrate checksum-specific exceptions out of homebrew-fork

The sums accessor was a relic from when Casks could contain any of md5, sha1, etc. The sums array was more extensible (if we change checksums again) but balancing against the clarity of naming accessors after the relevant stanzas, I opted for the latter.

The refactor is incomplete. We may want to spin checksums out of download.rb and/or combine them with GPG checks.

cc @ndr-qef

* perform actual checksum calculation within download.rb
* use an accessor named sha256 instead of sums for checksum data
* migrate checksum-specific exceptions out of homebrew-fork
@rolandwalker rolandwalker added the core Issue with Homebrew itself rather than with a specific cask. label Dec 23, 2014
rolandwalker added a commit that referenced this pull request Dec 24, 2014
Remove homebrew-fork `Checksum` class and refactor
@rolandwalker rolandwalker merged commit 2f1732d into Homebrew:master Dec 24, 2014
@rolandwalker rolandwalker deleted the remove_homebrew_checksum branch December 24, 2014 00:56
@tapeinosyne
Copy link
Contributor

Post-merge, I agree. This is in line with my original intentions, which would be to simplify checksums and move them into a Verify module of sort.

@miccal miccal removed the core Issue with Homebrew itself rather than with a specific cask. label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants