Tag Archives: homebrew
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 …
Проблема с git flow в PhpStorm под mac os
При попытке инициализировать репозиторий пишет ошибку и что нужно посмотреть в консоль. Для начала, конечно, нужно поставить git-flow
1 |
brew install git-flow |
и перезапустить IDE. Далее при инициализации опять выдаёт ошибку, в консоли при этом
1 2 3 4 5 |
git -c core.quotepath=false flow init -d git: 'flow' is not a git command. See 'git --help'. Did you mean one of these? reflog show |
Нужно создать симлинк:
1 |
sudo ln -s /usr/local/bin/git-flow /usr/bin/git-flow |
https://github.com/OpherV/gitflow4idea/issues/7#issuecomment-32591339