If anyone runs into the error
AttributeError: 'ExternalAliasCommand' object has no attribute 'subcommand_table'
this is because for some (wrong?) reason the build is trying to generate autocompletion for your local cli aliases.
A workaround is to remove and restore your aliases while building.
mv ~/.aws/cli/alias ~/.aws/cli/.alias
# build!
mv ~/.aws/cli/.alias ~/.aws/cli/alias
I don't think it makes any sense to try to generate autocompletion for local aliases. This might be an upstream issue but this AUR package would really help being chrooted while being built!
Pinned Comments
kstolp commented on 2024-10-23 05:14 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the key into your keyring. ArchWiki article. The key is available in this repo, which is copied from the AWS documentation. e.g.
gpg --import keys/pgp/FB5DB77FD5C118B80511ADA8A6310ACC4672475C.asc
. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)