Skip to content

Commit

Permalink
feat(dependencies): upgrade ca-certificates and add bazel to wanted p…
Browse files Browse the repository at this point in the history
…ackages
  • Loading branch information
entelecheia committed May 8, 2023
1 parent 9cd14f3 commit 1c67dca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ if [[ ! -f "${SOURCE_LIST_FILE}" ]]; then
# {{ end }}
fi

# Bazel
SOURCE_LIST_FILE="/etc/apt/sources.list.d/bazel.list"
if [[ ! -f "${SOURCE_LIST_FILE}" ]]; then
log_task "Adding bazel repository"
# shellcheck disable=SC1091
# {{ if eq .chezmoi.username "root" }}
c curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor --output /usr/share/keyrings/bazel-archive-keyring.gpg
c echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee "$SOURCE_LIST_FILE"
# {{ else }}
c curl -fsSL https://bazel.build/bazel-release.pub.gpg | sudo gpg --dearmor --output /usr/share/keyrings/bazel-archive-keyring.gpg
c echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee "$SOURCE_LIST_FILE"
# {{ end }}
fi

# {{ if .op.enabled }}
SOURCE_LIST_FILE="/etc/apt/sources.list.d/1password.list"
if [[ ! -e "${SOURCE_LIST_FILE}" ]]; then
Expand Down Expand Up @@ -94,6 +108,7 @@ readonly wanted_packages=(
stow
pass
xclip
bazel
gnupg # used to decrypt the gpg keys of the apt repositories
pinentry-curses
# {{ if not .system.is_devcontainer }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ else
echo "${output}"
exit 1
fi
c sudo apt install --yes -qq -o=Dpkg::Use-Pty=0 --no-install-recommends ca-certificates
c sudo apt install --yes -qq -o=Dpkg::Use-Pty=0 --no-install-recommends ca-certificates apt-transport-https curl gnupg

# {{ end }}

0 comments on commit 1c67dca

Please sign in to comment.