crosvm/docker/upgrade_checkout_commits.sh
Dennis Kempin b40ec47309 Make Kokoro happy
A few things happened:

- A recent minigbm change broke compilation for debian, so
  I am pinning the commit SHA for the Dockerfile.
- Newer rust versions come with new clippy errors, which I will
  have to look at in a separate change. For now I am pinning our
  rust version.
- Some repos have transitioned to a main branch. Fixed our uprev
  script to handle those.
- Renamed SYSROOT so we won't confuse pkg-config.

Now Kokoro is finally happy again!

BUG=None
TEST=wrapped_smoke_tests

Change-Id: I76294abe35fd84b305124158b3942a321651982d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2643779
Tested-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2021-01-22 22:32:37 +00:00

43 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cd "${0%/*}"
remotes=(
"https://github.com/mesonbuild/meson"
"https://github.com/anholt/libepoxy.git"
"https://chromium.googlesource.com/chromiumos/third_party/tpm2"
"https://chromium.googlesource.com/chromiumos/platform2"
"https://chromium.googlesource.com/chromiumos/third_party/adhd"
"https://gitlab.freedesktop.org/mesa/drm.git/"
"https://android.googlesource.com/platform/external/minijail"
"https://gitlab.freedesktop.org/virgl/virglrenderer.git"
"https://chromium.googlesource.com/chromiumos/platform/minigbm"
)
keys=(
"MESON_COMMIT"
"LIBEPOXY_COMMIT"
"TPM2_COMMIT"
"PLATFORM2_COMMIT"
"ADHD_COMMIT"
"DRM_COMMIT"
"MINIJAIL_COMMIT"
"VIRGL_COMMIT"
"MINIGBM_COMMIT"
)
for ((i = 0; i < ${#remotes[*]}; ++i)); do
remote="${remotes[$i]}"
key="${keys[$i]}"
branch="${branches[$i]}"
remote_chunk=$(git ls-remote --exit-code "${remote}" "refs/heads/main")
if [ -z "${remote_chunk}" ]; then
remote_chunk=$(git ls-remote --exit-code "${remote}" \
"refs/heads/master")
fi
commit=$(echo "${remote_chunk}" | cut -f 1 -)
echo $key=$commit
done