Carthage: How to install a specific version of carthage?

Created on 29 Jun 2017  路  3Comments  路  Source: Carthage/Carthage

  • carthage version: 0.18.1
  • xcodebuild -version: 8.2.1
  • Are you using --no-build? no
  • Are you using --no-use-binaries? yes
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no

I 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.

question

Most helpful comment

Just brew install https://github.com/Homebrew/homebrew-core/raw/6d42f6048c327300c2969e23e06f75dd061ad34b/Formula/carthage.rb should work.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JustinJiaDev picture JustinJiaDev  路  3Comments

mdiep picture mdiep  路  3Comments

yonaskolb picture yonaskolb  路  3Comments

rogernolan picture rogernolan  路  3Comments

akaffenberger picture akaffenberger  路  3Comments