John McDole 7d0f4d9ae8
[CP][Stable] Check for tracked engine.version before overriding (#163741)
### Issue Link:

#163308
#163691
and in some cases #162251

### Changelog Description:

Flutter tool respects tracked `engine.version`

### Impact Description:

Non `master`, `stable`, and `beta` branches will respect tracked versions of `engine.version` and not download incorrect engine artifacts.

### Workaround:

Deleting `engine/src/.gn` will trick the tools into thinking this is a non-monorepo.

### Risk:
What is the risk level of this cherry-pick?

### Test Coverage:
Are you confident that your fix is well-tested by automated tests?

### Validation Steps:

1. Switch to the branch / tag this is checked out to (i.e. `3.29.0`)
2. Examine `bin/internal/engine.version`
2. Run `flutter doctor`
3. See that it downloads the correct hash and `engine.version` hasn't been modified.
2025-02-20 22:06:55 +00:00
..