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

brew cleanup (linux ) #54

Closed
MrMic opened this issue Jun 5, 2024 · 6 comments · Fixed by #61
Closed

brew cleanup (linux ) #54

MrMic opened this issue Jun 5, 2024 · 6 comments · Fixed by #61

Comments

@MrMic
Copy link

MrMic commented Jun 5, 2024

General troubleshooting steps

  • [x ] I have retried my command with --force and the issue is still present.
  • [x ] I have checked the instructions for reporting bugs (or making requests) before opening the issue.
    • [ x] None of the templates was appropriate for my issue, or I’m not sure.
  • [x ] I ran brew update-reset && brew update and retried my command.
  • [ x] I ran brew doctor, fixed as many issues as possible and retried my command.
  • [x ] I understand that if I ignore these instructions, my issue may be closed without review.

Description of issue

brew cleanup

Output of your command with --verbose --debug

Error: Parameter 'hexdigest': Expected type String, got type Symbol with value :no_check
Caller: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:180
Definition: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/checksum.rb:12 (Checksum#initialize)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/configuration.rb:296:in `call_validation_error_handler_default'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/configuration.rb:303:in `call_validation_error_handler'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:310:in `report_error'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation_2_7.rb:661:in `block in create_validator_procedure_fast1'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:180:in `new'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:180:in `sha256'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.2/lib/ruby/3.3.0/forwardable.rb:240:in `sha256'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3588:in `sha256'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-linux-fonts/Formula/font-victor-mono.rb:6:in `<class:FontVictorMono>'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-linux-fonts/Formula/font-victor-mono.rb:1:in `block in load_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:107:in `module_eval'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:107:in `block in load_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:119:in `load_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:150:in `load_formula_from_path'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:582:in `load_file'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:803:in `load_file'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:573:in `klass'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:568:in `get_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:793:in `get_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1008:in `factory'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1099:in `from_keg'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1050:in `from_rack'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:129:in `stale_formula?'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation_2_7.rb:1029:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation_2_7.rb:1029:in `block in create_validator_method_medium2'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:66:in `stale?'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:450:in `block in cleanup_cache'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:432:in `each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:432:in `cleanup_cache'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cleanup.rb:296:in `clean!'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/cleanup.rb:52:in `run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:270:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/call_validation.rb:270:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11409/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:92:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/homebrew/homebrew-linux-fonts/issues/new

Output of brew cask doctor

command does not exists anymore
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the Stale label Jun 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2024
@develop7
Copy link
Contributor

Affects me too, please reopen

@develop7
Copy link
Contributor

develop7 commented Jul 30, 2024

While no_check is a correct value for sha256 stanza of a cask, it's apparently an incorrect value for same stanza in a formula, while formula generator just passes it through instead — https://github.com/Homebrew/homebrew-linux-fonts/pull/45/files#diff-2bb6800252f8732cdd7eb4ea53fdf0d7116990e2811098cd495893277fdf5d2eR92-R95

/cc @tani @SMillerDev please advise

develop7 added a commit to develop7/homebrew-linux-fonts that referenced this issue Jul 30, 2024
Drops `sha256` stanza for no_check value instead of passing it through which probably causes Homebrew#54
@tani
Copy link
Member

tani commented Jul 31, 2024

@MrMic Thanks for reporting the issue. @develop7 Thanks for considering fixing the issue. I will visit your proposal again this evening to verify that this fix works.

@develop7
Copy link
Contributor

@tani also please reopen the issue

I will visit your proposal again this evening to verify that this fix works.

absolutely do that

@tani tani reopened this Jul 31, 2024
@github-actions github-actions bot removed the Stale label Aug 1, 2024
@develop7
Copy link
Contributor

@tani any luck?

@tani tani closed this as completed in #61 Aug 20, 2024
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 a pull request may close this issue.

3 participants