Skip to content

Commit e8e06f0

Browse files
authored
[release-v1.16] Fix build script (#694)
1 parent 88233a0 commit e8e06f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hack/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,11 @@ if has_flag --debug; then
397397
set -x
398398
fi
399399

400-
# Shared funcs from hack repo
401-
source "$(basedir)"/vendor/knative.dev/hack/library.sh
400+
# Don't source hack/library.sh for platform builds
401+
if ! has_flag --platform -p; then
402+
# Shared funcs from hack repo
403+
source "$(basedir)"/vendor/knative.dev/hack/library.sh
404+
fi
402405

403406
# Shared funcs with CI
404407
while IFS= read -r -d '' file; do

0 commit comments

Comments
 (0)