From 751aa78373eb9efaa141bcc62fb1fab72f1d9ac9 Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Thu, 6 Aug 2020 20:12:58 -0700 Subject: [PATCH] Fix LLVM_REVISION parse regex (#4275) Fix parse regex as per format change in https://chromium.googlesource.com/chromium/src/tools/clang/+/e6863f878319bc31e7f454132b655251f9761fc2%5E%21/#F1 --- infra/base-images/base-clang/checkout_build_install_llvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-clang/checkout_build_install_llvm.sh b/infra/base-images/base-clang/checkout_build_install_llvm.sh index c733eb3ac..ec0d8ba0d 100755 --- a/infra/base-images/base-clang/checkout_build_install_llvm.sh +++ b/infra/base-images/base-clang/checkout_build_install_llvm.sh @@ -68,7 +68,7 @@ OUR_LLVM_REVISION=e84b7a5fe230e42b8e6fe451369874a773bf1867 # To allow for manual downgrades. Set to 0 to use Chrome's clang version (i.e. # *not* force a manual downgrade). Set to 1 to force a manual downgrade. FORCE_OUR_REVISION=0 -LLVM_REVISION=$(grep -Po "CLANG_REVISION = '\K[a-f0-9]+(?=')" scripts/update.py) +LLVM_REVISION=$(grep -Po "CLANG_REVISION = '\K([^']+)" scripts/update.py) clone_with_retries https://github.com/llvm/llvm-project.git $LLVM_SRC