nix build sandbox on macOS #1354

Closed
opened 2024-07-24 23:15:43 +02:00 by dacevedo12 · 2 comments
dacevedo12 commented 2024-07-24 23:15:43 +02:00 (Migrated from github.com)

some large derivations (mainly the ones that build from node packages) exceed this limit when running on a sandbox https://github.com/NixOS/nix/issues/4119

even if the user disables sandbox mode at /etc/nix/nix.conf, the --option sandbox takes priority

https://github.com/fluidattacks/makes/blob/main/src/cli/main/cli.py#L291

current workaround is to export MAKES_K8S_COMPAT=1 before running the command through makes

some large derivations (mainly the ones that build from node packages) exceed this limit when running on a sandbox https://github.com/NixOS/nix/issues/4119 even if the user disables sandbox mode at /etc/nix/nix.conf, the --option sandbox takes priority https://github.com/fluidattacks/makes/blob/main/src/cli/main/cli.py#L291 current workaround is to `export MAKES_K8S_COMPAT=1` before running the command through makes
dsalaza4 commented 2024-07-24 23:44:19 +02:00 (Migrated from github.com)

I would rather getting rid of the sandbox option on the makes CLI and let users configure nix however they want on their nix.conf

I would rather getting rid of the sandbox option on the makes CLI and let users configure nix however they want on their nix.conf
dsalaza4 commented 2024-08-13 03:18:07 +02:00 (Migrated from github.com)

Sandboxing configurations were removed. Using sandbox or not is up to the user's nix.conf

Sandboxing configurations were removed. Using sandbox or not is up to the user's nix.conf
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
justin/makes#1354
No description provided.