File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 119
119
120
120
if [ -z " $PACKAGE_TYPES " ]; then
121
121
case " $TARGET " in
122
- * linux* ) PACKAGE_TYPES=" deb,apk,rpm,tarball" ;;
122
+ * linux* |all ) PACKAGE_TYPES=" deb,apk,rpm,tarball" ;;
123
123
* apple* ) PACKAGE_TYPES=" tarball" ;;
124
124
* ) PACKAGE_TYPES=" tarball" ;;
125
125
esac
@@ -194,6 +194,14 @@ build_virtual_package() {
194
194
if [[ " $PACKAGE_TYPES " =~ apk ]]; then
195
195
env GIT_SEMVER=" ${APK_VERSION:- $GIT_SEMVER } " RELEASE=" r0" nfpm " ${COMMON_ARGS[@]} " --packager apk
196
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
197
205
}
198
206
199
207
get_package_arch () {
You can’t perform that action at this time.
0 commit comments