youtube-music: [Bug]: can't upgrade via brew

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.5.0

What operating system are you using?

macOS

Operating System Version

Sonoma 14.5

What CPU architecture are you using?

arm64 (including Apple Silicon)

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

brew upgrade --greedy

Expected Behavior

Upgrade version

Actual Behavior

==> Upgrading 1 outdated package: th-ch/youtube-music/youtube-music v3.5.0 -> v3.5.0 ==> Upgrading youtube-music ==> Downloading https://github.com/th-ch/youtube-music/releases/download/v3.5.0/YouTube-Music-3.5.0-arm64.dmg Already downloaded: /Users/sc/Library/Caches/Homebrew/downloads/669ec0f286b256f4d85559a8bb60ba0b2bb55a92c774f146a51f1ce1706da248–YouTube-Music-3.5.0-arm64.dmg Warning: No checksum defined for cask ‘youtube-music’, skipping verification. ==> Backing App ‘YouTube Music.app’ up to ‘/opt/homebrew/Caskroom/youtube-music/v3.5.0/YouTube Music.app’ ==> Removing App ‘/Applications/YouTube Music.app’ ==> Purging files for version v3.5.0 of Cask youtube-music Error: th-ch/youtube-music/youtube-music: Directory not empty @ rb_file_s_rename - (/opt/homebrew/Caskroom/youtube-music/v3.5.0, /opt/homebrew/Caskroom/youtube-music/v3.5.0.upgrading)

Enabled plugins

No

Additional Information

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

👋 Looked at it, indeed the problem seems to be around using the numbered version - I switched the formula to use :latest which hopefully should fix the issue!

@gmcinalli I had to remove /opt/homebrew/Caskroom/youtube-music/ folder, then remove /Applications/YouTube Music.app App, and then install it again brew install th-ch/youtube-music/youtube-music

Why it’s trying to update from v3.5.0 -> v3.5.0

@gmcinalli well, I’m not the creator of the App, I’m just another user who faced the same problem as you, hopefully @th-ch will fix it for future versions.

I think the problem is here, I currently have version 3.5.3 installed, but brew thinks I have 3.6.1 installed.

image

👋 opened https://github.com/th-ch/homebrew-youtube-music/pull/5 to hopefully fix the rb_file_s_rename errors!