Closed Bug 1979992 Opened 9 months ago Closed 9 months ago

Add `--skip-android` to `mach format` in Lando Autoformatting

Categories

(Conduit :: Lando, task)

Tracking

(Not tracked)

RESOLVED FIXED

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.

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)

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: