Add `--skip-android` to `mach format` in Lando Autoformatting
Categories
(Conduit :: Lando, task)
Tracking
(Not tracked)
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Bug 1977641 makes changes to MachCommandConditions which impacts ./mach format (Which Lando uses for autoformatting). It essentially makes ./mach configure running a requirement when checking for a conditions that requires it. For ./mach configure to succeed, we need to do a full bootstrap, and we'd need that to succeed. As seen in bug 1972167 making Lando strictly require ./mach bootstrap to succeed is not a good idea.
Given that the conditions.is_android(command_context) was previously always returning False anyway (without being able to properly evaluate the condition), we were effectively always skipping Android formatters anyway. As such, bug 1977641 added an arg to enable explicitly skipping this check in D259154. We just need to pass the new arg here when we call ./mach format in Lando.
Comment 1•9 months ago
|
||
Comment 2•9 months ago
|
||
Authored by https://github.com/ahochheiden
https://github.com/mozilla-conduit/lando/commit/b823e62b9ef87b188b21b9db62537420482131ef
[main] landing_worker: Add "--skip-android" to "./mach format" call (Bug 1979992) (#443)
Description
•