Skip to content

Commit

Permalink
asdf: solution for using NODEJS_CHECK_SIGNATURES=no
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarnajjar committed Mar 12, 2021
1 parent 2055c9f commit a382189
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions gnupg/dirmngr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard-resolver
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function asdf_setup() {
git clone https://github.com/asdf-vm/asdf.git asdf/asdf
ln -s $dotfiles_dir/asdf/default-cargo-crates $HOME/.default-cargo-crates
ln -s $dotfiles_dir/asdf/default-gems $HOME/.default-gems
ln -s $dotfiles_dir/gnupg/dirmngr.conf $HOME/.gnupg/dirmngr.conf
}

function direnv_symlinks() {
Expand Down
5 changes: 3 additions & 2 deletions shell/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,16 @@ function set_to_origin() {

function asdf_add() {
asdf plugin-add $1
NODEJS_CHECK_SIGNATURES=no asdf install $1 $2
# for gpg-key issues see: https://github.com/asdf-vm/asdf-nodejs/issues/192#issuecomment-797448073
asdf install $1 $2
asdf global $1 $2
}

function asdf_latest() {
for plugin in ${ASDF_PLUGINS[@]}
do
asdf plugin-add $plugin
NODEJS_CHECK_SIGNATURES=no asdf install $plugin latest
asdf install $plugin latest
asdf global $plugin latest
done
}
Expand Down

0 comments on commit a382189

Please sign in to comment.