codebuilds
codebuilds copied to clipboard
GPG key doesn't download due to lack of curl following redirects
Download of GPG key in apt.sh
for the APT install will fail given the current packagecloud.io infrastructure. This is due to the url https://packagecloud.io/headmelted/codebuilds/gpgkey
issuing a redirect to the eventual location and unfortunately apt.sh
does not use curl
in a manner that will follow redirects.
The fix is to change line 28 of the script from:
curl $gpg_key | gpg --dearmor > /etc/apt/trusted.gpg.d/${REPO_VENDOR}_vscode.gpg;
to
curl -L $gpg_key | gpg --dearmor > /etc/apt/trusted.gpg.d/${REPO_VENDOR}_vscode.gpg;
This could be related to the multiple GPG problems like in issue #61
This issue can now be closed as it's been resolved in 38e4efe.