carthage version
: 0.18.1xcodebuild -version
: 8.2.1--no-build
? no--no-use-binaries
? yes--use-submodules
? no--cache-builds
? noI am trying to install carthage v0.20.1. I used brew install [email protected]
but I receive the error:
Error: No available formula with the name "[email protected]"
My colleague is running this version so it exists. Am I missing a step? I ran this after it failed the first time:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
But it still failed the second time.
Off the top of my head (on mobile), curl https://github.com/Homebrew/homebrew-core/raw/6d42f6048c327300c2969e23e06f75dd061ad34b/Formula/carthage.rb --output carthage.rb && brew install --force carthage.rb
should download the formula and download the precompiled bottle, overwriting what carthage might already be downloaded from brew.
Homebrew does not support installing a specific version normally. So as @jdhealy said you need to point a specific revision of the formula.
Just brew install https://github.com/Homebrew/homebrew-core/raw/6d42f6048c327300c2969e23e06f75dd061ad34b/Formula/carthage.rb
should work.
Most helpful comment
Just
brew install https://github.com/Homebrew/homebrew-core/raw/6d42f6048c327300c2969e23e06f75dd061ad34b/Formula/carthage.rb
should work.