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

SHA256 Mismatch Error When Installing SwiftLint via Homebrew #206001

Closed
4 tasks done
McGiRG3z opened this issue Jan 30, 2025 · 2 comments
Closed
4 tasks done

SHA256 Mismatch Error When Installing SwiftLint via Homebrew #206001

McGiRG3z opened this issue Jan 30, 2025 · 2 comments

Comments

@McGiRG3z
Copy link

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

% brew config
HOMEBREW_VERSION: 4.4.19
ORIGIN: https://github.com/Homebrew/brew
HEAD: 23facb219df8615680636ef12103bb3313f44e2a
Last commit: 3 days ago
Branch: stable
Core tap JSON: 30 Jan 11:32 UTC
Core cask tap JSON: 30 Jan 11:32 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: deca-core 64-bit arm_donan
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.3-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: 16.2
Rosetta 2: false


% 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)?

I encountered a SHA256 mismatch error while attempting to install SwiftLint using Homebrew. The error message indicates that the expected SHA256 does not match the actual SHA256 of the downloaded file.

What happened (include all command output)?

 % brew install swiftlint  
==> Downloading https://ghcr.io/v2/homebrew/core/swiftlint/manifests/0.58.2
Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/21f4ab90d3181e98c843f465cdc3446b41434ec2742cbecef4c5baf01f88bbc3--swiftlint-0.58.2.bottle_manifest.json
==> Fetching swiftlint
==> Downloading https://ghcr.io/v2/homebrew/core/swiftlint/blobs/sha256:88296c32
Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/a21f3441ab63fef8f8ab3ddb142ca204e9237596953804d222554702072e3895--swiftlint--0.58.2.arm64_sequoia.bottle.tar.gz
Error: swiftlint: SHA256 mismatch
Expected: 88296c32a4fe4de3cdadd1a1bc3df7c583d404b254684e1e67b2b98990bf2685
  Actual: e29945de7c479a96cb0d21889705858fad13d9043d72276273ca27cb5c916e7e
    File: /Users/admin/Library/Caches/Homebrew/downloads/a21f3441ab63fef8f8ab3ddb142ca204e9237596953804d222554702072e3895--swiftlint--0.58.2.arm64_sequoia.bottle.tar.gz
To retry an incomplete download, remove the file above.

What did you expect to happen?

SwiftLint should install successfully without any SHA256 mismatch errors.

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

% brew install swiftlint
@McGiRG3z McGiRG3z added the bug Reproducible Homebrew/homebrew-core bug label Jan 30, 2025
@SMillerDev
Copy link
Member

Did you retry the download?

@cho-m cho-m removed the bug Reproducible Homebrew/homebrew-core bug label Jan 30, 2025
@McGiRG3z
Copy link
Author

Did you retry the download?

Sorry for the earlier issue! I’ve retried the download, and it’s working properly now. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants