We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7c455 commit db77872Copy full SHA for db77872
ci/build_scripts/package.sh
@@ -194,6 +194,14 @@ build_virtual_package() {
194
if [[ "$PACKAGE_TYPES" =~ apk ]]; then
195
env GIT_SEMVER="${APK_VERSION:-$GIT_SEMVER}" RELEASE="r0" nfpm "${COMMON_ARGS[@]}" --packager apk
196
fi
197
+
198
+ # Expect to build at least 1 virtual package to prevent silent errors
199
+ # when no virtual packages were created
200
+ VIRTUAL_PACKAGE_COUNT=$(find target/virtual-packages -type f | wc -l | xargs)
201
+ if [ "$VIRTUAL_PACKAGE_COUNT" -lt 1 ]; then
202
+ echo "Expected at least 1 virtual packages to have been created. got=$VIRTUAL_PACKAGE_COUNT" >&2
203
+ exit 1
204
+ fi
205
}
206
207
get_package_arch() {
0 commit comments