[infra] Ensure that only git dependencies are pulled/updated via git.

There could be also 'cipd' dependencies which are not compatible with git cloning/checking-out logic

Change-Id: I25243a07e119e73176857e19a83b3e9e632346c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199560
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Alexander Aprelev 2021-05-12 22:31:40 +00:00 committed by commit-bot@chromium.org
parent bd50c47824
commit b7ecafe495

View file

@ -62,7 +62,7 @@ if [ $need_runhooks = true ]; then
# DEPS file might have been patched with new version of packages that
# Dart SDK depends on. Get information about dependencies from the
# DEPS file and forcefully update checkouts of those dependencies.
gclient.py revinfo | grep 'src/third_party/dart/third_party' | while read -r line; do
gclient.py revinfo --ignore-dep-type=cipd | grep 'src/third_party/dart/third_party' | while read -r line; do
# revinfo would produce lines in the following format:
# path: git-url@tag-or-hash
# Where no spaces occur inside path, git-url or tag-or-hash.