% generate_appcast --ed-key-file <(echo mysecretkey) example/
Unable to load EdDSA private key from /dev/fd/11
Error Domain=NSCocoaErrorDomain Code=257 "The file “11” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/dev/fd/11, NSUnderlyingError=0x6000002404e0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
You can work around this by using stdin. (Example doesn't have a real key, but with a real key everything works perfectly.)
% echo mysecretkey | generate_appcast --ed-key-file - example/
Error: Private key not found in the argument. Please provide a valid key.
This is very surprising as it should just be reading from the passed in path. For some reason it doesn't work properly. Not only is this surprising and leads to requiring a different approach but in many cases the stdin approach results in scripts that are harder to read and maintian.
Summary
You can work around this by using stdin. (Example doesn't have a real key, but with a real key everything works perfectly.)
This is very surprising as it should just be reading from the passed in path. For some reason it doesn't work properly. Not only is this surprising and leads to requiring a different approach but in many cases the stdin approach results in scripts that are harder to read and maintian.
Version
2.6.4