I currently have a private Homebrew Github repo with the following Formula for a private tool I made and use for myself:
require_relative "../custom_download_strategy.rb"
class MyTool < Formula
desc "My Tool"
homepage "https://github.com/<username>/homebrew-<pkg>"
url "https://github.com/<username>/homebrew-<package>/releases/download/v0.1.3/pkg.tar.gz", :using => CustomGitHubPrivateRepositoryReleaseDownloadStrategy
version "0.1.3"
sha256 ""
end
Whenever I update my tool, I repackage my app and then edit the version number and URL of my Formula accordingly.
However, despite making these changes and pushing to the Github repo, when I run brew upgrade <my tool>
on a machine I want to use the upgraded tool, Homebrew just spits out the following error:
Warning: v0.1.3 already installed
The only way I that I can download the new version of the tool is if I run the following:
brew untap <my tap>
brew tap <my tap>
brew install <my tool>
How can I configure my private repo so that if I want to upgrade my tool, I can simply run brew upgrade <my tool>
?
question from:
https://stackoverflow.com/questions/66057638/how-to-get-taps-to-update-when-there-is-a-new-homebrew-release 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…