File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
swift-ci/sdks/android/scripts Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 21
21
cd ${source_dir} /swift-project
22
22
swift_android_patch=" ${patches_dir} /swift-android.patch"
23
23
24
+ ls -la swift/utils/build-script-impl
25
+ ls -la ${swift_android_patch}
26
+ ls -la swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
27
+
24
28
# patch the patch, which seems to only be needed for an API less than 28
25
29
# https://github.com/finagolfin/swift-android-sdk/blob/main/swift-android.patch#L110
26
30
perl -pi -e ' s/#if os\(Windows\)/#if os\(Android\)/g' $swift_android_patch
@@ -55,7 +59,9 @@ for patch in "$swift_android_patch" "$testing_patch" "$dispatch_patch"; do
55
59
fi
56
60
57
61
echo " applying patch $patch in $PWD …"
58
- git apply -v --unsafe-paths -C1 " $patch "
62
+ # first check to make sure the patches can apply and fail if not
63
+ git apply -v --check -C1 " $patch "
64
+ git apply -v -C1 " $patch "
59
65
60
66
# if git apply -C1 --reverse --check "$patch" >/dev/null 2>&1 ; then
61
67
# echo "already patched"
You can’t perform that action at this time.
0 commit comments