David Muñoz Rey
6aa3898317
fix(apple): rethrow internal invariant violations while resolving a bundle's program file ( #11392 )
...
* fix(apple): rethrow internal invariant violations while resolving a bundle's program file
Bundle target resolution decodes Info.plist with the shared binary plist decoder, which reports a broken internal assumption as InternalInvariantError. The resolver caught every decode failure and reported it as a BinaryTargetError ("Info.plist is malformed, unsupported, or lacks CFBundleExecutable"), and its two outer catches wrapped anything else the same way. A REA defect therefore reached the caller as a fact about the user's bundle.
#11029 made the other plist consumers rethrow the invariant. The resolver's decode site and both outer catches now do the same.
Tests: a boundary test opens a .app and a .bundle through parseBinaryTarget with the decoder replaced by one that reports an invariant violation. Before this change both resolved { ok: false } with a BinaryTargetError; now both reject with the InternalInvariantError. The same bundles open normally with the real decoder.
* test(apple): mock the binary plist decoder at its domain path
Main moved the binary plist materializer from src/artifacts/apple to
src/domain/apple, and AppBundleExecutable now imports it from there. The
invariant test still mocked the old path, which no longer exists, so tsc
failed and the mock would have intercepted nothing.
The test now mocks src/domain/apple/binaryPlistMaterializer.js. With the
rethrow removed from AppBundleExecutable both cases fail; with it they pass.
2026-11-21 20:56:47 +01:00
..
2026-11-15 09:52:48 +08:00
2026-11-19 21:22:18 -05:00
2026-11-21 10:20:13 +00:00
2026-11-19 23:22:53 -05:00
2026-10-25 09:45:26 +08:00
2026-11-21 08:47:41 +00:00
2026-11-21 08:37:55 +00:00
2026-11-08 00:01:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-21 20:56:47 +01:00
2026-11-16 16:42:07 -05:00
2026-11-16 07:12:16 +08:00
2026-10-25 07:31:42 +08:00
2026-10-24 16:02:59 +08:00
2026-11-14 12:13:56 +01:00
2026-11-16 04:20:40 +08:00
2026-11-20 16:12:58 +00:00
2026-11-16 06:28:01 +08:00
2026-10-27 06:06:27 +08:00
2026-10-25 07:57:07 +08:00
2026-11-18 14:59:33 -05:00
2026-10-23 22:54:28 +08:00
2026-10-27 03:23:50 +08:00
2026-10-12 04:53:27 +08:00
2026-11-15 20:35:28 +08:00
2026-11-16 08:10:08 +08:00
2026-11-16 03:56:10 +08:00
2026-11-18 12:35:59 -05:00
2026-11-20 16:12:58 +00:00
2026-11-17 21:02:58 -05:00
2026-11-21 19:45:46 +01:00
2026-11-16 06:49:01 +08:00
2026-11-20 22:42:46 +00:00
2026-11-20 23:04:21 +00:00
2026-11-20 23:04:21 +00:00
2026-11-20 22:44:24 +00:00
2026-11-16 04:49:19 +08:00
2026-11-20 17:51:02 -05:00
2026-11-20 22:58:47 +00:00
2026-11-20 17:51:02 -05:00
2026-11-15 20:58:47 -05:00
2026-11-19 19:45:26 +00:00
2026-11-21 20:20:04 +01:00
2026-11-19 13:41:40 +00:00
2026-10-25 07:31:42 +08:00
2026-11-06 10:11:56 +08:00
2026-11-14 13:21:13 +08:00
2026-11-02 02:13:32 +08:00
2026-11-12 19:24:54 -05:00
2026-11-16 03:56:10 +08:00
2026-11-18 10:09:30 -05:00
2026-11-16 03:56:10 +08:00
2026-11-19 19:18:21 -05:00
2026-11-19 23:22:53 -05:00
2026-11-21 19:52:16 +01:00
2026-11-16 21:27:46 -05:00
2026-10-27 09:55:24 +08:00
2026-10-27 09:55:24 +08:00
2026-11-16 06:14:14 +08:00
2026-11-19 19:58:54 +00:00
2026-11-02 02:13:32 +08:00
2026-10-25 07:31:42 +08:00
2026-11-20 12:08:59 +00:00
2026-11-16 21:27:46 -05:00
2026-11-19 22:59:09 +00:00
2026-11-20 23:12:00 -08:00
2026-10-27 09:55:24 +08:00
2026-11-19 22:56:52 +00:00
2026-11-20 14:10:36 +00:00
2026-11-19 23:00:53 +00:00
2026-11-13 14:20:11 -05:00
2026-11-15 23:49:11 +08:00
2026-10-14 06:07:08 +08:00
2026-11-16 03:56:10 +08:00
2026-11-13 04:45:16 -05:00
2026-11-17 18:48:24 -05:00
2026-11-15 21:31:35 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-19 11:18:43 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-16 04:27:07 +08:00
2026-11-15 20:53:25 +08:00
2026-11-15 20:53:25 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-21 08:56:46 +00:00
2026-11-17 18:38:16 -05:00
2026-11-15 19:39:33 +08:00
2026-11-19 23:04:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-20 22:13:54 -05:00
2026-11-15 11:14:59 -05:00
2026-11-05 17:04:55 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 05:31:37 +08:00
2026-11-19 06:08:59 -05:00
2026-11-19 11:40:08 -05:00
2026-11-18 15:18:59 -05:00
2026-11-18 15:18:59 -05:00
2026-11-18 19:24:16 -05:00
2026-11-18 15:18:59 -05:00
2026-11-11 21:34:29 +08:00
2026-11-21 08:42:05 +00:00
2026-11-19 11:41:02 +00:00
2026-11-19 14:40:54 -05:00
2026-11-20 22:42:11 +00:00
2026-11-17 14:57:30 -05:00
2026-11-19 22:12:19 -05:00
2026-11-14 05:36:32 +01:00
2026-11-21 08:49:29 -05:00
2026-10-25 07:31:42 +08:00
2026-11-19 12:56:14 +00:00
2026-11-17 08:04:07 -05:00
2026-11-16 03:56:10 +08:00
2026-11-19 23:04:24 -05:00
2026-11-21 00:23:18 -08:00
2026-11-17 10:04:46 +00:00
2026-11-17 10:04:46 +00:00
2026-11-20 23:12:10 +00:00
2026-11-20 14:27:36 +00:00
2026-11-19 21:38:40 +00:00
2026-11-17 08:19:52 +00:00
2026-10-22 15:02:23 +08:00
2026-11-19 19:45:26 +00:00
2026-11-19 19:45:26 +00:00
2026-11-12 22:05:32 -05:00
2026-11-20 08:30:16 -05:00
2026-11-17 18:48:24 -05:00
2026-11-15 17:25:31 +08:00
2026-11-16 03:56:10 +08:00
2026-11-19 19:19:32 +00:00
2026-11-19 23:03:53 -05:00
2026-10-24 02:34:35 +08:00
2026-11-19 23:04:24 -05:00
2026-10-24 17:56:31 +08:00
2026-11-17 18:48:24 -05:00
2026-11-19 03:58:03 +00:00
2026-11-20 16:06:14 +00:00
2026-11-20 14:35:04 -05:00
2026-11-20 14:35:04 -05:00
2026-10-27 21:24:30 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:53:53 -05:00
2026-11-16 06:16:09 +08:00
2026-11-18 16:06:51 -05:00
2026-11-15 21:35:25 +08:00
2026-11-15 21:31:35 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-19 20:49:33 +00:00
2026-11-19 20:49:33 +00:00
2026-11-20 12:59:31 +00:00
2026-11-16 08:10:08 +08:00
2026-10-24 04:23:56 +08:00
2026-11-15 20:58:47 -05:00
2026-10-12 11:34:02 +08:00
2026-11-16 07:32:08 +08:00
2026-11-17 21:54:42 -05:00
2026-11-16 03:56:10 +08:00
2026-10-24 23:49:25 +08:00
2026-10-11 13:29:50 +08:00
2026-10-20 00:37:45 +08:00
2026-11-16 07:32:08 +08:00
2026-10-24 08:22:14 +08:00
2026-11-15 23:59:23 +08:00
2026-11-18 11:05:05 +08:00
2026-11-17 21:54:42 -05:00
2026-11-15 20:35:28 +08:00
2026-11-16 05:16:56 +08:00
2026-10-11 17:43:28 +08:00
2026-10-29 13:43:55 +08:00
2026-11-17 21:02:58 -05:00
2026-11-21 03:49:38 -05:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-21 03:49:38 -05:00
2026-11-20 02:02:48 +00:00
2026-11-19 19:45:26 +00:00
2026-10-19 06:22:32 +08:00
2026-10-28 16:01:17 +08:00
2026-11-10 16:41:40 -05:00
2026-11-14 14:28:08 +08:00
2026-11-10 16:41:40 -05:00
2026-10-26 23:06:36 +08:00
2026-11-21 19:51:56 +01:00
2026-11-16 06:28:01 +08:00
2026-11-19 12:51:06 +00:00
2026-11-15 18:24:35 +08:00
2026-11-15 17:03:25 +08:00
2026-11-18 09:11:08 -05:00
2026-11-16 04:14:55 +08:00
2026-11-14 19:28:38 +08:00
2026-11-15 21:51:18 +08:00
2026-11-19 19:45:26 +00:00
2026-11-19 23:22:53 -05:00
2026-11-19 22:04:23 -05:00
2026-11-20 02:01:27 +00:00
2026-11-16 04:27:07 +08:00
2026-11-16 09:12:58 -05:00
2026-11-19 19:31:01 +00:00
2026-11-19 15:59:06 +00:00
2026-11-19 01:51:37 +00:00
2026-10-14 19:49:08 +08:00
2026-11-19 19:45:26 +00:00
2026-11-19 19:45:26 +00:00
2026-11-07 23:25:20 +08:00
2026-11-11 05:38:35 +00:00
2026-10-29 07:55:05 +08:00
2026-11-20 12:08:59 +00:00
2026-11-15 20:53:25 +08:00
2026-11-15 21:31:35 +08:00
2026-11-16 06:49:01 +08:00
2026-10-26 02:33:31 +08:00
2026-10-20 00:05:22 +08:00
2026-10-22 17:20:07 +08:00
2026-11-16 16:31:52 -05:00
2026-11-10 16:41:40 -05:00
2026-11-16 06:43:33 +08:00
2026-11-15 20:53:25 +08:00
2026-10-27 17:13:17 +00:00
2026-11-16 10:59:18 +08:00
2026-11-16 05:37:57 +08:00
2026-11-21 08:49:29 -05:00
2026-10-25 07:57:07 +08:00
2026-11-16 03:44:53 +08:00
2026-11-02 02:13:32 +08:00
2026-11-15 18:35:01 +08:00
2026-11-15 21:31:35 +08:00
2026-10-25 07:31:42 +08:00
2026-11-10 16:43:39 -05:00
2026-11-16 00:01:18 +08:00
2026-10-14 08:31:16 +08:00
2026-11-20 08:58:11 -05:00
2026-11-11 18:23:15 +08:00
2026-10-11 06:10:10 +08:00
2026-10-24 06:24:55 +08:00
2026-10-23 19:18:47 +08:00
2026-11-20 08:58:11 -05:00
2026-11-14 13:21:13 +08:00
2026-11-16 03:56:10 +08:00
2026-11-20 14:12:54 +00:00
2026-11-19 06:34:36 -05:00
2026-11-20 14:12:54 +00:00
2026-11-16 03:56:10 +08:00
2026-11-11 18:23:15 +08:00
2026-11-20 14:28:31 +00:00
2026-10-24 06:04:41 +08:00
2026-11-20 08:58:11 -05:00
2026-10-24 06:24:55 +08:00
2026-10-23 21:34:45 +08:00
2026-10-22 06:12:42 +08:00
2026-10-11 06:10:10 +08:00
2026-10-13 14:51:23 +08:00
2026-10-24 02:40:21 +08:00
2026-11-20 14:12:54 +00:00
2026-11-16 03:56:10 +08:00
2026-11-09 07:57:52 +08:00
2026-11-20 12:08:59 +00:00
2026-11-19 18:00:37 -05:00
2026-11-14 05:27:07 +08:00
2026-11-19 19:31:01 +00:00
2026-11-20 12:08:59 +00:00
2026-11-20 12:08:59 +00:00
2026-11-20 23:12:00 -08:00
2026-10-14 19:48:30 +08:00
2026-11-19 19:00:22 +00:00
2026-11-20 22:44:28 +00:00
2026-11-20 13:03:31 +00:00
2026-11-20 22:44:28 +00:00
2026-11-16 03:56:10 +08:00
2026-11-15 23:49:11 +08:00
2026-11-17 18:48:24 -05:00
2026-11-17 18:48:24 -05:00
2026-11-21 18:50:36 +00:00
2026-10-24 15:08:10 +08:00
2026-10-28 11:34:28 +00:00
2026-11-15 18:35:01 +08:00
2026-11-16 04:49:19 +08:00
2026-11-16 03:56:10 +08:00
2026-11-17 18:48:24 -05:00
2026-10-25 05:28:31 +08:00
2026-11-15 21:31:35 +08:00
2026-11-15 18:23:05 +08:00
2026-11-19 03:32:08 +00:00
2026-11-20 17:18:31 -05:00
2026-11-20 11:10:13 -05:00
2026-11-20 11:10:13 -05:00
2026-10-28 00:20:07 +08:00
2026-10-21 19:47:52 +08:00
2026-11-16 03:56:10 +08:00
2026-11-19 23:03:53 -05:00
2026-11-14 05:27:07 +08:00
2026-11-14 05:27:07 +08:00
2026-10-13 19:30:50 +08:00
2026-11-16 04:11:55 +08:00
2026-11-15 23:49:11 +08:00
2026-11-18 20:40:21 -05:00
2026-11-18 20:40:21 -05:00
2026-11-19 23:04:24 -05:00
2026-11-14 13:21:13 +08:00
2026-11-16 14:58:17 -05:00
2026-10-21 19:47:52 +08:00
2026-11-17 18:48:24 -05:00
2026-10-25 07:31:42 +08:00
2026-11-14 13:21:13 +08:00
2026-10-27 05:42:50 +08:00
2026-10-27 00:25:43 +08:00
2026-11-21 05:41:12 -05:00
2026-11-08 02:02:31 +08:00
2026-11-21 06:11:19 -05:00
2026-11-19 13:19:27 +00:00
2026-11-16 04:27:07 +08:00
2026-11-16 04:27:07 +08:00
2026-11-21 05:41:12 -05:00
2026-11-17 14:57:30 -05:00
2026-10-19 08:45:04 +08:00
2026-11-21 14:33:59 -05:00
2026-11-20 01:38:27 +00:00
2026-10-17 17:14:16 +08:00
2026-11-15 18:35:01 +08:00
2026-10-15 18:38:19 +00:00
2026-11-15 21:31:35 +08:00
2026-11-19 12:23:59 +00:00