d12frosted / dotbot-brew

Install brew packages using dotbot
MIT License
47 stars 25 forks source link

Feature request: Add support for updates #42

Open grzesuav opened 2 years ago

grzesuav commented 2 years ago

It would be nice to update package if new version found

d12frosted commented 2 years ago

Just like nix-darwin has a feature of auto update.

0inp commented 1 year ago

According to the homebrew documentation, that is already the case: https://docs.brew.sh/Manpage#install-options-formulacask-

Unless HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set, brew upgrade or brew reinstall will be run for outdated dependents and dependents with broken linkage, respectively.

What do you think about it ? Nevertheless, I saw something weird with my dotbot install. Here is the brew part of my install.conf.yaml

- tap:
  │ - homebrew/bundle
  │ - homebrew/core
  │ - homebrew/cask
  │ - homebrew/cask-fonts
  │ - amar1729/formulae
- cask:
  │ - font-hack-nerd-font
  │ - raycast # better Spotlight
  │ - rectangle # macos window management
  │ - stats # System stats menu bar
- brew:
  │ - bat # better cat
  │ - browserpass # password manager
  │ - coreutils
  │ - diff-so-fancy # fancy git diff
  │ - exa # ls alternative
  │ - fd # find alternative
  │ - git
  │ - gitlint # Linting comiit messages
  │ - glow # Render markdown
  │ - gnupg
  │ - htop # top alternative
  │ - neovim # neovim
  │ - node # Node
  │ - openssl
  │ - pgcli # PGCli
  │ - pinentry-mac
  │ - pyenv
  │ - pyenv-virtualenv
  │ - readline
  │ - ripgrep # very fast file searcher
  │ - sqlite3
  │ - starship # prompt
  │ - the_silver_searcher
  │ - tmux # sessions multiplexer
  │ - xz # Compression
  │ - wget
  │ - zlib
  │ - zsh

And here is the output:

Tapping homebrew/bundle
Tapping homebrew/core
Tapping homebrew/cask
Tapping homebrew/cask-fonts
Tapping amar1729/formulae
Installing font-hack-nerd-font
Warning: Cask 'font-hack-nerd-font' is already installed.

To re-install font-hack-nerd-font, run:
  brew reinstall --cask font-hack-nerd-font
Installing raycast
Warning: Cask 'raycast' is already installed.

To re-install raycast, run:
  brew reinstall --cask raycast
Installing rectangle
Warning: Cask 'rectangle' is already installed.

To re-install rectangle, run:
  brew reinstall --cask rectangle
Installing stats
Warning: Cask 'stats' is already installed.

To re-install stats, run:
  brew reinstall --cask stats
All packages have been installed
All packages have been installed

I noticed two things :