-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{Packaging} Fix DEB install script #28990
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Packaging |
@@ -49,7 +49,7 @@ setup() { | |||
set -v | |||
mkdir -p /etc/apt/keyrings | |||
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | | |||
gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg | |||
gpg --dearmor > /etc/apt/keyrings/microsoft.gpg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative is to use gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg --yes
, but switching to the old redirection >
is safer.
The same change should be made on https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt. |
The document is used in an interactive environment, and the user can handle it when |
Resolve #28984.
There is no tty in GitHub runner. This error is raised when run
gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg
:gpg: cannot open '/dev/tty': No such device or address
The reason is that this file already exists in the agent:
And
gpg
wants to ask:File '/etc/apt/keyrings/microsoft.gpg' exists. Overwrite? (y/N)
This PR reverts to the save method from the previous commit, which overwrites the file.
Related PR: #28250
Tested in this workflow: https://github.com/bebound/starter-workflows/actions/runs/9152933588