Skip to content

fix: add -y flag to apt-get install in generated CI#2354

Open
ChanTsune wants to merge 1 commit into
axodotdev:mainfrom
ChanTsune:fix/apt-get-install-yes-flag
Open

fix: add -y flag to apt-get install in generated CI#2354
ChanTsune wants to merge 1 commit into
axodotdev:mainfrom
ChanTsune:fix/apt-get-install-yes-flag

Conversation

@ChanTsune

Copy link
Copy Markdown

apt-get requires -y (or the APT::Get::Assume-Yes config option) to automatically answer yes to confirmation prompts. GitHub Actions standard runners pre-configure APT::Get::Assume-Yes, so the missing flag has not caused issues there. However, custom containers or self-hosted runners may not have this setting, causing the command to hang waiting for user input.

Other package managers already handle this: choco uses --yes, dnf uses --assumeyes. brew and pip do not prompt by default.

fix #2353

apt-get requires -y (or the APT::Get::Assume-Yes config option)
to automatically answer yes to confirmation prompts. GitHub Actions
standard runners pre-configure APT::Get::Assume-Yes, so the missing
flag has not caused issues there. However, custom containers or
self-hosted runners may not have this setting, causing the command
to hang waiting for user input.

Other package managers already handle this: choco uses --yes,
dnf uses --assumeyes. brew and pip do not prompt by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apt-get install missing -y flag in generated CI workflow

1 participant