mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 11:31:05 +00:00
Treat the SC2250 require-variable-braces in CI. There are no functional changes. Related to: #10951 Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
43 lines
900 B
Bash
Executable File
43 lines
900 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2022 Apple Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -e
|
|
|
|
cidir=$(dirname "$0")
|
|
runtimedir=${cidir}/../src/runtime
|
|
|
|
build_working_packages() {
|
|
# working packages:
|
|
device_api=${runtimedir}/pkg/device/api
|
|
device_config=${runtimedir}/pkg/device/config
|
|
device_drivers=${runtimedir}/pkg/device/drivers
|
|
device_manager=${runtimedir}/pkg/device/manager
|
|
rc_pkg_dir=${runtimedir}/pkg/resourcecontrol/
|
|
utils_pkg_dir=${runtimedir}/virtcontainers/utils
|
|
|
|
# broken packages :( :
|
|
#katautils=$runtimedir/pkg/katautils
|
|
#oci=$runtimedir/pkg/oci
|
|
#vc=$runtimedir/virtcontainers
|
|
|
|
pkgs=(
|
|
"${device_api}"
|
|
"${device_config}"
|
|
"${device_drivers}"
|
|
"${device_manager}"
|
|
"${utils_pkg_dir}"
|
|
"${rc_pkg_dir}")
|
|
for pkg in "${pkgs[@]}"; do
|
|
echo building "${pkg}"
|
|
pushd "${pkg}" &>/dev/null
|
|
go build
|
|
go test
|
|
popd &>/dev/null
|
|
done
|
|
}
|
|
|
|
build_working_packages
|