gowalk-cicd 1.0.131 → 1.0.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/action/.daemux-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.132
|
|
@@ -67,13 +67,17 @@ def commands(script: str) -> list[list[str]] | None:
|
|
|
67
67
|
current = []
|
|
68
68
|
target = False
|
|
69
69
|
for token in tokens:
|
|
70
|
-
if target:
|
|
70
|
+
if target:
|
|
71
71
|
target = False
|
|
72
72
|
continue
|
|
73
73
|
if token.startswith("#"):
|
|
74
74
|
break
|
|
75
75
|
if token and set(token) <= OPERATOR:
|
|
76
|
-
if set(token) & REDIRECT:
|
|
76
|
+
if set(token) & REDIRECT:
|
|
77
|
+
# Only the deferred uploader's effects belong to the removed operation.
|
|
78
|
+
# A redirected builtin/assignment can produce another required build input.
|
|
79
|
+
if not uploads_symbols(current):
|
|
80
|
+
return None
|
|
77
81
|
target = True
|
|
78
82
|
continue
|
|
79
83
|
if current:
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""An upload-only rewrite must preserve commands that also produce other build inputs."""
|
|
2
|
+
import copy
|
|
3
|
+
import unittest
|
|
4
|
+
|
|
5
|
+
import prepare_crashlytics_build as build
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PhaseEffectTests(unittest.TestCase):
|
|
9
|
+
def test_redirected_builtins_are_build_work_even_without_another_executable(self):
|
|
10
|
+
for command in ('echo public > Generated.swift', 'echo enabled >> build.env',
|
|
11
|
+
': > generated.config', 'BUILD=release > generated.config'):
|
|
12
|
+
with self.subTest(command=command):
|
|
13
|
+
script = command + '\nupload-symbols -gsp app.plist -p ios symbols'
|
|
14
|
+
self.assertFalse(build.dedicated(script))
|
|
15
|
+
document = {'objects': {'phase': {'isa': 'PBXShellScriptBuildPhase',
|
|
16
|
+
'name': 'Crashlytics and generated input', 'shellScript': script}}}
|
|
17
|
+
original = copy.deepcopy(document)
|
|
18
|
+
with self.assertRaisesRegex(ValueError, 'shares the build phase'):
|
|
19
|
+
build.rewrite(document)
|
|
20
|
+
self.assertEqual(document, original)
|
|
21
|
+
|
|
22
|
+
def test_supported_generated_guards_remain_upload_only(self):
|
|
23
|
+
self.assertTrue(build.dedicated(
|
|
24
|
+
'if [ -f "$PODS_ROOT/FirebaseCrashlytics/upload-symbols" ]; then\n'
|
|
25
|
+
'"$PODS_ROOT/FirebaseCrashlytics/upload-symbols" -gsp app.plist -p ios symbols\n'
|
|
26
|
+
'else echo "warning: upload-symbols absent"; fi'))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if __name__ == '__main__':
|
|
30
|
+
unittest.main()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.132
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.132
|