10000 swiftformat 0.55.0: SHA256 mismatch · Issue #198214 · Homebrew/homebrew-core · GitHub
[go: up one dir, main page]

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

swiftformat 0.55.0: SHA256 mismatch #198214

Closed
4 tasks done
rgoldberg opened this issue Nov 19, 2024 · 3 comments
Closed
4 tasks done

swiftformat 0.55.0: SHA256 mismatch #198214

rgoldberg opened this issue Nov 19, 2024 · 3 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@rgoldberg
Copy link
Contributor
rgoldberg commented Nov 19, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

$ brew config
HOMEBREW_VERSION: 4.4.6-19-gc81cd0b
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: c81cd0b929fd44b0a2acf2d55afbb9590b323657
Last commit: 40 minutes ago
Core tap HEAD: f5b8eefb4ca34b1a24186f652967d7a5def6e083
Core tap last commit: 56 minutes ago
Core tap JSON: 19 Nov 12:30 UTC
Core cask tap HEAD: 3c37edcda4396b4df5498efe72385a6e87d15482
Core cask tap last commit: 22 minutes ago
Core cask tap JSON: 19 Nov 12:30 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.E6LmwmTcgU/org.xquartz:0
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.6 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 14.0.0 build 1400
Git: 2.47.0 => /usr/local/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 12.7.6-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
$ brew doctor
Your system is ready to brew.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

brew upgrade swiftformat

What happened (include all command output)?

==> Upgrading 1 outdated package:
swiftformat 0.54.6_1 -> 0.55.0
==> Fetching swiftformat
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/f5b8eefb4ca34b1a24186f652967d7a5def6e083/Formula/s/swiftformat.rb
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/0.55.0.tar.gz
==> Downloading from https://codeload.github.com/nicklockwood/SwiftFormat/tar.gz/refs/tags/0.55.0
     -=#=-     #          #             #                                                                                                                                                                                                                       
Error: SHA256 mismatch
Expected: fa32fcb68cb87e6750f2103788e95985aadfc99667d11954cac0e4fad859cd12
  Actual: cd6d979c8bb42cd0b2cb6596d5d2134d104e2a6d91fff6d55708c2d5b1341eb3
    File: /Users/user/Library/Caches/Homebrew/downloads/fa36b431ae72bc670d19d364b35625c684ea8809282e6cb046d4d52761a6e539--SwiftFormat-0.55.0.tar.gz
To retry an incomplete download, remove the file above.

I manually downloaded the source specified by the formula's url.

shasum -a 256 output the same checksum for the downloaded file as the checksum computed by brew upgrade swiftformat. Their shared checksum value is different than the checksum from the formula's sha256.

I imagine that the 0.55.0.tar.gz file on the server was changed, so it has a new checksum, but I don't know for sure.

What did you expect to happen?

Upgrade to finish without an SHA256 mismatch error.

Step-by-step reproduction instructions (by running brew commands)

brew upgrade swiftformat
@rgoldberg rgoldberg added the bug Reproducible Homebrew/homebrew-core bug label Nov 19, 2024
@daeho-ro
Copy link
Member

Here is a PR for that, Thank you for this report.

@rgoldberg
Copy link
Contributor Author

Asked about checksums in the upstream:

nicklockwood/SwiftFormat#1924

@rgoldberg
Copy link
Contributor Author

Fixed via #198429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants
0