Skip to content

Conversation

@maxxieb
Copy link

@maxxieb maxxieb commented Jan 28, 2026

How does this PR change the system?

The local deployment process is flaky on NixOS, since the bazel code, generating the scripts for the bootstrap sets shebangs to paths that may be nonexistent on the system.

The easiest fix would be to just add the relevant info for the users in the docs.

Second approach would be to fix the shebangs in the generated scripts (example in prelude-si/toolchains/extraction.bzl; although there should be also a change made in a bazel file generating the python-wrapper and the healthcheck - I wasn't able to dig those two out)

The third possible fix that might be investigated although would take significantly more engineering effort would be to have nix do the toolchain retrieval and extraction, although I did not investigate that angle if there are any major blockers in implementing that.

Does it require a docs change?

  • No
  • Yes, and this PR includes it
  • Yes, and this PR does not include it (reasoning below)

Updated NixOS installation requirements to include additional configuration settings.
Updated NixOS requirements to include envfs and nix-ld settings.
Since bash does not always is in `/bin/bash`, or sometimes the path might not even exist (i.e. on NixOS without `services.envfs.enabled = true;`) - it might be safer and a better practice in general to change shebangs of generated scripts to /usr/bin/env bash (and maybe do the same thing for python scripts shebangs)
@github-actions github-actions bot added the community Submitted by a community person label Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Submitted by a community person

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant