Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/init/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ install_or_upgrade_homebrew_linux() {
activate_brew_shellenv
}

# Refresh Homebrew itself before touching any formula. CI runners ship a
# preinstalled Homebrew with auto-update disabled, and a Homebrew older than the
# formula JSON API's schema aborts mid-pour with "unknown install step: run".
update_homebrew() {
brew update
brew upgrade
}

install_or_upgrade_brew_formula() {
local formula
formula="$1"
Expand Down
3 changes: 2 additions & 1 deletion bin/init/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fi
export PATH="/usr/local/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
brew upgrade
update_homebrew
brew doctor || true
log_step "Homebrew installed"

Expand Down Expand Up @@ -196,6 +196,7 @@ install_go_tool "github.com/mikefarah/yq/v4@latest"
install_go_tool "github.com/x-motemen/ghq@latest"
install_go_tool "github.com/cloudspannerecosystem/spanner-cli@latest"
install_go_tool "github.com/aquasecurity/tfsec/cmd/tfsec@latest"
install_go_tool "github.com/terraform-linters/tflint@latest"
install_go_tool "mvdan.cc/gofumpt@latest"
install_go_tool "tailscale.com/cmd/tailscale@main"
install_go_tool "tailscale.com/cmd/tailscaled@main"
Expand Down
3 changes: 2 additions & 1 deletion bin/init/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ install_or_upgrade_git_repo "https://github.com/ebkn/dotfiles" "$DOTFILES_DIR"

log_step "Installing Homebrew"
install_or_upgrade_homebrew_linux
brew upgrade
update_homebrew
brew doctor || true

log_step "Installing Google Cloud CLI"
Expand Down Expand Up @@ -113,6 +113,7 @@ install_go_tool "github.com/mikefarah/yq/v4@latest"
install_go_tool "github.com/x-motemen/ghq@latest"
install_go_tool "github.com/cloudspannerecosystem/spanner-cli@latest"
install_go_tool "github.com/aquasecurity/tfsec/cmd/tfsec@latest"
install_go_tool "github.com/terraform-linters/tflint@latest"
install_go_tool "mvdan.cc/gofumpt@latest"
install_go_tool "tailscale.com/cmd/tailscale@main"
install_go_tool "tailscale.com/cmd/tailscaled@main"
Expand Down
3 changes: 2 additions & 1 deletion bin/init/wsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ install_or_upgrade_git_repo "https://github.com/ebkn/dotfiles" "$DOTFILES_DIR"

log_step "Installing Homebrew"
install_or_upgrade_homebrew_linux
brew upgrade
update_homebrew
brew doctor || true

log_step "Installing Google Cloud CLI"
Expand Down Expand Up @@ -192,6 +192,7 @@ install_go_tool "github.com/mikefarah/yq/v4@latest"
install_go_tool "github.com/x-motemen/ghq@latest"
install_go_tool "github.com/cloudspannerecosystem/spanner-cli@latest"
install_go_tool "github.com/aquasecurity/tfsec/cmd/tfsec@latest"
install_go_tool "github.com/terraform-linters/tflint@latest"
install_go_tool "mvdan.cc/gofumpt@latest"

link_with_backup "${DOTFILES_DIR}/.vimrc" "${HOME}/.vimrc"
Expand Down
5 changes: 3 additions & 2 deletions brewfiles/Brewfile-lang
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ brew 'hadolint'
# ShellScript
brew 'shellcheck'

# Terraform
brew 'tflint'
# Terraform: tflint relicensed to BUSL and was dropped from homebrew-core
# (2026-05-13), so it is installed via install_go_tool alongside terraform-ls
# and tfsec in the platform init scripts.

# Java
brew 'java'
Expand Down
1 change: 1 addition & 0 deletions zsh/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ update-all() {
go install github.com/x-motemen/ghq@latest
go install github.com/cloudspannerecosystem/spanner-cli@latest
go install github.com/aquasecurity/tfsec/cmd/tfsec@latest
go install github.com/terraform-linters/tflint@latest
go install mvdan.cc/gofumpt@latest
go install tailscale.com/cmd/tailscale{,d}@main
# --ignore-scripts=false overrides ~/.npmrc's global ignore-scripts=true: this
Expand Down
Loading