Skip to content

Commit 238d6c0

Browse files
authored
chore: update script to remove Package.swift file in subdir (#525)
1 parent 11a0978 commit 238d6c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/updateReleaseToLocalDev.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ cat ${AWS_SDK_SWIFT_PACKAGE} |\
7373
-e "s|\(.*\)url:\ \"https://github.com/awslabs/smithy-swift.*\"\(.*\)|\1path:\ \"$SMITHY_SWIFT\"\2|g" > ${TEMPFILE}
7474
mv ${TEMPFILE} ${AWS_SDK_SWIFT_PACKAGE}
7575
rm -f ${TEMPFILE}
76+
# Package.swift in 'AWSClientRuntime' needs to be removed if users are depending on the top level Package.swift to easily browse code in XCode
77+
rm -f ${AWS_SDK_SWIFT}/AWSClientRuntime/Package.swift
7678
echo "Updated ${AWS_SDK_SWIFT_PACKAGE}"
7779

7880
TEMPFILE=`mktemp`
@@ -81,4 +83,6 @@ cat ${SMITHY_SWIFT_PACKAGE} |\
8183
sed -e "s|\(.*\)url:\ \"https://github.com/awslabs/aws-crt-swift.*\"\(.*\)|\1path:\ \"$AWS_CRT_SWIFT\"\2|g" > ${TEMPFILE}
8284
mv ${TEMPFILE} ${SMITHY_SWIFT_PACKAGE}
8385
rm -f ${TEMPFILE}
86+
# Package.swift in 'Packages' needs to be removed if users are depending on the top level Package.swift to easily browse code in XCode
87+
rm -f ${SMITHY_SWIFT}/Packages/Package.swift
8488
echo "Updated ${SMITHY_SWIFT_PACKAGE}"

0 commit comments

Comments
 (0)