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

Fix appflowy.rb 0.8.0 SHA256 #197658

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

arturmartins
Copy link
Contributor

@arturmartins arturmartins commented Jan 8, 2025

Issue:

Have appflowy 0.7.9 installed

==> Found outdated apps
     Cask      Current  Latest  A/U    Result
1/1  appflowy  0.7.9    0.8.0        [OUTDATED]

but upgrading fails due SHA mismatch:

==> Upgrading appflowy to 0.8.0
==> Downloading https://github.com/AppFlowy-IO/AppFlowy/releases/download/0.8.0/Appflowy-0.8.0-macos-universal.zip
Already downloaded: /Users/giraffe/Library/Caches/Homebrew/downloads/8d0e5e0502ed56d3182f004a43f1af1d59eabd8776f39479907fff7442b4c53d--AppFlowy-0.8.0-macos-universal.zip
Error: SHA256 mismatch
Expected: d68a241c694dd604ffe7389a73fa5c6a24e6c8237e4b14e139efdebc814161fa
  Actual: 7b0fbcff7641c78adc8fe6eb96aac79e9861d2c2d8dc99dafb47a4fc7af85f64
    File: /Users/giraffe/Library/Caches/Homebrew/downloads/8d0e5e0502ed56d3182f004a43f1af1d59eabd8776f39479907fff7442b4c53d--AppFlowy-0.8.0-macos-universal.zip
To retry an incomplete download, remove the file above.

Reason:

AppFlowy released new artefacts for 0.8.0 today (Jan 8, 2025, 5:37 AM UTC), making the previous 0.8.0 SHA265 invalid.

Verification:

I downloaded the zip file and ran sha256sum.

❯ sha256sum AppFlowy-0.8.0-macos-universal.zip
7b0fbcff7641c78adc8fe6eb96aac79e9861d2c2d8dc99dafb47a4fc7af85f64  AppFlowy-0.8.0-macos-universal.zip

Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

In the following questions <cask> is the token of the cask you're submitting.

After making any changes to a cask, existing or new, verify:


❯ brew bump --open-pr appflowy
Error: These casks are not in any locally installed taps!

  appflowy

You may need to run `brew tap` to install additional taps.
brew audit --cask --online appflowy
Fetching gem metadata from https://rubygems.org/.......
Fetching ast 2.4.2
Fetching json 2.9.1
Fetching language_server-protocol 3.17.0.3
Fetching parallel 1.26.3
Installing ast 2.4.2
Fetching racc 1.8.1
Installing json 2.9.1 with native extensions
Installing language_server-protocol 3.17.0.3
Installing parallel 1.26.3
Fetching rainbow 3.1.1
Installing racc 1.8.1 with native extensions
Installing rainbow 3.1.1
Fetching regexp_parser 2.10.0
Installing regexp_parser 2.10.0
Fetching unicode-emoji 4.0.4
Installing unicode-emoji 4.0.4
Fetching unicode-display_width 3.1.3
Installing unicode-display_width 3.1.3
Fetching parser 3.3.6.0
Installing parser 3.3.6.0
Fetching rubocop-ast 1.37.0
Installing rubocop-ast 1.37.0
Fetching rubocop 1.69.2
Installing rubocop 1.69.2
Fetching rubocop-md 1.2.4
Fetching rubocop-performance 1.23.1
Fetching rubocop-rspec 3.3.0
Fetching rubocop-sorbet 0.8.7
Installing rubocop-md 1.2.4
Installing rubocop-performance 1.23.1
Installing rubocop-rspec 3.3.0
Installing rubocop-sorbet 0.8.7
Bundle complete! 41 Gemfile dependencies, 30 gems now installed.
Bundled gems are installed into `../../../opt/homebrew/Library/Homebrew/vendor/bundle`
Error: These casks are not in any locally installed taps!

  appflowy

You may need to run `brew tap` to install additional taps.

https://github.com/AppFlowy-IO/AppFlowy/releases/tag/0.8.0

AppFlowy released new artifacts for 0.8.0, therefore new SHA265 is needed
@bevanjkay
Copy link
Member

Thank you @arturmartins for your first contribution to homebrew-cask 🎉

@bevanjkay bevanjkay enabled auto-merge January 8, 2025 22:45
@bevanjkay bevanjkay merged commit 5d1694c into Homebrew:master Jan 8, 2025
11 checks passed
@arturmartins arturmartins deleted the patch-1 branch January 8, 2025 22:48
@arturmartins
Copy link
Contributor Author

Thanks @bevanjkay! That was quick!! Appreciate it!

@arturmartins
Copy link
Contributor Author

Works

==> Upgrading appflowy
==> Downloading https://github.com/AppFlowy-IO/AppFlowy/releases/download/0.8.0/Appflowy-0.8.0-macos-universal.zip
Already downloaded: /Users/giraffe/Library/Caches/Homebrew/downloads/8d0e5e0502ed56d3182f004a43f1af1d59eabd8776f39479907fff7442b4c53d--AppFlowy-0.8.0-macos-universal.zip
==> Backing App 'AppFlowy.app' up to '/opt/homebrew/Caskroom/appflowy/0.7.9/AppFlowy.app'
==> Removing App '/Applications/AppFlowy.app'
==> Moving App 'AppFlowy.app' to '/Applications/AppFlowy.app'
==> Purging files for version 0.7.9 of Cask appflowy
🍺  appflowy was successfully upgraded!

@adavidzh adavidzh mentioned this pull request Jan 13, 2025
3 tasks
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

Successfully merging this pull request may close these issues.

2 participants