When running capi sync using a tarball created from deno task dnt in capi, it fails
➜ capi-react-native-example git:(aaa) ✗ yarn sync
yarn run v1.22.19
$ capi sync node
(node:61075) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:42
throw new Error(await response.text());
^
Error: Error: commits/v0.0.0-local: invalid response
at github (file:///src/server/capi.dev/delegator.ts:92:11)
at eventLoopTick (ext:core/01_core.js:183:11)
at async file:///src/server/capi.dev/delegator.ts:71:18
at async getSha (file:///src/server/capi.dev/delegator.ts:69:10)
at async handler (file:///src/server/capi.dev/delegator.ts:29:15)
at async file:///src/server/errorHandler.ts:6:14
at async Server.<anonymous> (file:///src/server/corsHandler.ts:18:22)
at async Server.#respond (https://deno.land/std@0.186.0/http/server.ts:299:18)
at upload (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:42:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:16:34
at async Promise.all (index 0)
at async file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/server/client/syncNets.js:12:25
at async withSignal (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/util/withSignal.js:10:16)
at async setup (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/cli/sync.js:68:21)
at async Command.runSyncNode [as fn] (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/cli/sync.js:38:35)
at async Command.execute (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/deps_2/deno.land/x/cliffy@v0.25.7/command/command.js:704:13)
at async Command.parseCommand (file:///home/ryan/Documents/Repositories/capi-vite-example/capi-react-native-example/node_modules/capi/esm/deps_2/deno.land/x/cliffy@v0.25.7/command/command.js:592:20)
Node.js v20.3.1
When running
capi sync
using a tarball created fromdeno task dnt
in capi, it fails