Skip to content

mach: Add yes installation cofirmation flag to bootstrap command#41086

Merged
mrobinson merged 4 commits intoservo:mainfrom
MCozhusheck:feature/mach-bootstrap-non-interactive-option
Dec 8, 2025
Merged

mach: Add yes installation cofirmation flag to bootstrap command#41086
mrobinson merged 4 commits intoservo:mainfrom
MCozhusheck:feature/mach-bootstrap-non-interactive-option

Conversation

@MCozhusheck
Copy link
Copy Markdown
Contributor

Implements #40502

Adds --yes flag to mach bootstrap command which confirms installation of all required packages.
Unlike --force flag (which also does that) it does NOT reinstall all packages but only confirms them (if required at all).

Test on Ubuntu 24.04.2 LTS by removing safe development packages like libgstrtspserver-1.0-dev libges-1.0-dev gstreamer1.0-tools and run mach bootstrap twice to observe if --yes flags automatically install all dependencies.
With this flag all dependencies were installed with any interaction but removing some dependencies and running ./mach bootstrap prompted me to confirm apt-get install action.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 5, 2025
@MCozhusheck MCozhusheck force-pushed the feature/mach-bootstrap-non-interactive-option branch from 950e2fc to ec048c7 Compare December 5, 2025 16:30
Copy link
Copy Markdown
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should just always use the -y behavior, but this seems okay for the moment. I have one small suggestion.

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 5, 2025
@MCozhusheck MCozhusheck force-pushed the feature/mach-bootstrap-non-interactive-option branch from 90881a4 to e469237 Compare December 6, 2025 09:42
@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync.

@mrobinson mrobinson changed the title Add yes installation cofirmation flag to bootstrap command mach: Add yes installation cofirmation flag to bootstrap command Dec 8, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 8, 2025
@mrobinson mrobinson enabled auto-merge December 8, 2025 13:32
@mrobinson mrobinson added this pull request to the merge queue Dec 8, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 8, 2025
Merged via the queue into servo:main with commit bebcc0e Dec 8, 2025
29 of 30 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 8, 2025
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.

4 participants