Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues preventing installing dependencies for web development #46

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
15 changes: 11 additions & 4 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,14 @@ install_asdf_language() {

version="$(asdf list-all "$language" | grep -E "$regex_pattern" | tail -1)"

fancy_echo "install_asdf_language installing language: $language, version: $version"

if ! asdf list "$language" | grep -Fq "$version"; then
asdf install "$language" "$version"
asdf global "$language" "$version"
fi

fancy_echo "DONE install_asdf_language for $language - $version"
}

install_asdf_ruby() {
Expand Down Expand Up @@ -228,7 +232,7 @@ install_asdf_golang() {
add_or_update_asdf_plugin "golang" "https://github.com/asdf-community/asdf-golang.git"

fancy_echo "Installing latest Go ..."
install_asdf_language "golang" "^\d+.\d+.?\d+?-otp-\d+$"
install_asdf_language "golang" "^\d+.\d+.?\d+?\d+$"
}

append_general_dependencies() {
Expand All @@ -247,14 +251,15 @@ append_general_dependencies() {
# General apps
cask "slack" unless File.directory?("/Applications/Slack.app")
cask "google-chrome" unless File.directory?("/Applications/Google Chrome.app")
cask "1password" unless File.directory?("/Applications/1Password 7.app")
# cask "1password" unless File.directory?("/Applications/1Password 7.app")
cask "1password" unless File.directory?("/Applications/1Password.app")
cask "1password-cli"
cask "skitch" unless File.directory?("/Applications/Skitch.app")
# cask "skitch" unless File.directory?("/Applications/Skitch.app")
cask "postman" unless File.directory?("/Applications/Postman.app")
cask "iterm2" unless File.directory?("/Applications/iTerm.app")

# Unix
brew "universal-ctags", args: ["HEAD"]
# brew "universal-ctags", args: ["HEAD"]
brew "git"
brew "openssl"
brew "gpg"
Expand Down Expand Up @@ -386,6 +391,8 @@ install() {
install_asdf_erlang
install_asdf_elixir
install_asdf_golang

fancy_echo "Finished installing asdf languages for Web development"
fi

install_laptop_local
Expand Down