Build failure when using PodMan
Describe the bug
When doing a npm install then npm run start from macOS using podman it fails. (my guess is because of the different architectures) I attached the call stack after doing npm run start
Additional context Build is up-to-date. hopping into sandbox (command: podman) ...
[email protected] start NODE_ENV=development scripts/start.sh
Checking build status... Build is up-to-date. node:internal/modules/cjs/loader:1651 return process.dlopen(module, path.toNamespacedPath(filename)); ^
Error: /Users/scottdensmore/Developer/google-gemini/gemini-code/node_modules/sqlite3/build/Release/node_sqlite3.node: invalid ELF header
at Module._extensions..node (node:internal/modules/cjs/loader:1651:18)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at bindings (/Users/scottdensmore/Developer/google-gemini/gemini-code/node_modules/bindings/bindings.js:112:48)
at Object.
eeek that's bad. @olcan would you mind taking a look?
this seems related to the image deployment issue tracked in b/418454925 that @KeijiBranshi is working on
a workaround for now might be to build the image locally via npm run build:all
@olcan does that mean this wont repro in normal dogfood builds?
i was going to say building locally should be fine, but i just tried it on my cloudtop and it failed, so sandboxing is totally broken on cloudtops right now and we should probably roll back the change that introduced this sqlite dependency until it can be tested in sandbox
correction: this is broken on macos, cloudtops seem fine
as a workaround on MacOS i would disable the GEMINI_SANDBOX (or GEMINI_CODE_SANDBOX) env var and use native sandboxing (seatbelt) for now