Daily Archives: 09.01.2019
Install exact version via brew
For instance, we’re looking for kubernetes-helm@2.9 helm 2.9
1 2 3 4 5 6 |
git -C "$(brew --repo homebrew/core)" fetch --unshallow cd "$(brew --repo homebrew/core)" git log Formula/kubernetes-helm.rb # searching for 2.9.0 with a command /2\.9\.0 and copying hash like "7ade79f13b4bbcc6126803245594d97b2abbe2fa" git checkout -b kubernetes-helm@2.9.0 7ade79f13b4bbcc6126803245594d97b2abbe2fa HOMEBREW_NO_AUTO_UPDATE=1 brew install kubernetes-helm |
Now we have needed version of helm. If you see an error message like Error: go: unknown version :mountain_lion, you should make a little hack (as it said here). Check all the files depending on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
grep 'depends_on :macos => :mountain_lion' Formula/* # you'll see something like Formula/bashdb.rb: depends_on :macos => :mountain_lion Formula/chrome-cli.rb: depends_on :macos => :mountain_lion Formula/clipsafe.rb: depends_on :macos => :mountain_lion Formula/go.rb: depends_on :macos => :mountain_lion Formula/go@1.8.rb: depends_on :macos => :mountain_lion Formula/go@1.9.rb: depends_on :macos => :mountain_lion Formula/ios-sim.rb: depends_on :macos => :mountain_lion Formula/mesos.rb: depends_on :macos => :mountain_lion Formula/mongodb.rb: depends_on :macos => :mountain_lion Formula/mongodb@3.0.rb: depends_on :macos => :mountain_lion Formula/mongodb@3.2.rb: depends_on :macos => :mountain_lion Formula/mongodb@3.4.rb: depends_on :macos => :mountain_lion ... |
In each file just comment a string saying depends_on :macos …