Comment

Comment by jchw

Bazel doesn't guarantee bit-exact outputs, but also Bazel doesn't guarantee pure builds. It does have a sandbox that prevents some impurities, but for example it doesn't prevent things from going out to the network, or even accessing files from anywhere in the filesystem, if you use absolute paths. (Although, on Linux at least, Bazel does prevent you from modifying files outside of the sandbox directory.)

The Nix sandbox does completely obscure the host filesystem and limit network access to processes that can produce a bit-exact output only.

(Bazel also obviously uses the system compilers and headers. Nix does not.)

parent jchw 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton