gowalk-cicd 1.0.100 → 1.0.101

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.
@@ -1 +1 @@
1
- 1.0.100
1
+ 1.0.101
@@ -40,6 +40,7 @@ def prepare(root: Path, container: str, proxy_helper: Path) -> dict:
40
40
  digest = committed(root, folder / "Podfile.lock")
41
41
  if not proxy_helper.is_file():
42
42
  raise guard.Refused("native_google_transport_helper_required")
43
+ proxy_helper = proxy_helper.resolve(strict=True)
43
44
  with tempfile.TemporaryFile() as log:
44
45
  if command([sys.executable, str(proxy_helper)], root, log):
45
46
  raise guard.Refused("native_google_proxy_required")
@@ -56,6 +56,38 @@ class PodsTests(unittest.TestCase):
56
56
  self.env.pop("GOOGLE_STORE_PROXY_URL")
57
57
  self.assertEqual(self.run_cli()[1]["code"], "native_google_proxy_required")
58
58
 
59
+ def test_relative_relay_survives_the_nested_pod_working_directory(self):
60
+ self.locked()
61
+ folder = self.root / "mobile app/ios"
62
+ folder.mkdir(parents=True)
63
+ for name in ("App.xcodeproj", "Podfile", "Podfile.lock"):
64
+ (self.root / name).rename(folder / name)
65
+ for argv in (["git", "add", "-A"],
66
+ ["git", "-c", "user.name=Fixture", "-c", "user.email=fixture@example.invalid",
67
+ "commit", "-qm", "Move the native project into its app folder"]):
68
+ subprocess.run(argv, cwd=self.root, check=True, capture_output=True)
69
+ pod = self.root / "pod"
70
+ pod.write_text('#!' + sys.executable + '\nimport json,os,sys\nfrom pathlib import Path\n'
71
+ 'Path("child.json").write_text(json.dumps({"cwd":str(Path.cwd()),'
72
+ '"argv":sys.argv[1:],"proxy":os.environ["HTTPS_PROXY"]}))\n'
73
+ 'workspace=Path("App.xcworkspace");workspace.mkdir()\n'
74
+ '(workspace/"contents.xcworkspacedata").write_text('
75
+ '\'<Workspace><FileRef location="group:App.xcodeproj"/></Workspace>\')\n')
76
+ pod.chmod(0o700)
77
+ self.env["PATH"] = str(self.root) + os.pathsep + self.env["PATH"]
78
+ result = subprocess.run([sys.executable, native_pods.__file__, str(self.root),
79
+ "--container", "mobile app/ios/App.xcodeproj", "--proxy-helper",
80
+ os.path.relpath(PROXY, self.root)], cwd=self.root,
81
+ capture_output=True, text=True, env=self.env, timeout=20)
82
+ self.assertNotIn("PRIVATE_SENTINEL", result.stdout + result.stderr)
83
+ self.assertEqual(result.returncode, 0, result.stdout)
84
+ self.assertTrue(json.loads(result.stdout)["ok"])
85
+ child = json.loads((folder / "child.json").read_text())
86
+ self.assertEqual(child["cwd"], str(folder))
87
+ self.assertEqual(child["argv"], ["install", "--deployment", "--no-repo-update"])
88
+ self.assertTrue(child["proxy"].startswith("http://127.0.0.1:"))
89
+ self.assertEqual((folder / "Podfile.lock").read_text(), "fixture-lock")
90
+
59
91
  def test_declared_bundle_controls_the_actual_pod_child(self):
60
92
  self.locked()
61
93
  (self.root / "Gemfile").write_text('source "https://rubygems.org"\ngem "cocoapods", "1.16.2"\n')
@@ -1 +1 @@
1
- 1.0.100
1
+ 1.0.101
@@ -1 +1 @@
1
- 1.0.100
1
+ 1.0.101
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gowalk-cicd",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "Zero-config GitHub Actions delivery for iOS TestFlight and Android Google Play.",
5
5
  "type": "module",
6
6
  "bin": {