Check EnableLongPaths registry value before adding
This adds a check to verify whether the EnableLongPaths registry value
already exists on the system prior to attempting to add it. In cases
where it already exists, we see the followign permissions failure on the bots:
New-ItemProperty : Requested registry access is not allowed.
At line:1 char:1
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSy ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH...trol\FileSystem:String) [New-ItemProperty], Securit
yException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.NewItemPropertyCommand
Bug: https://github.com/flutter/flutter/issues/82184
Change-Id: I447606a70da7607c7ce2a89742a9706af9960bb2
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/13340
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Chris Bracken <cbracken@google.com>
This repository contains Flutter's LUCI recipes. For the LUCI infrastructure config, see flutter/infra on GitHub. Actual builds can be seen at ci.chromium.org.
Tricium configurations recipes repo.
The script branch_recipes.py is used to generate new copies of the LUCI recipes for a beta release. See Recipe Branching for Releases for more information. For usage:
$ ./branch_recipes.py --help