[Bug]: compile.sh
amends user's global git config; fails if it can't
#7907
Labels
compile.sh
amends user's global git config; fails if it can't
#7907
What happened?
Running
./compile
fails if the user's global git config is a symlink to a read-only filesystem, as it usually is in NixOS. I imagine this holds true for other situations in which a user's git config is read-only to that user.Log:
Here's the relevant code:
There is that call to
alert
, but, as seen in the output above, there's no console output other than the error.I'm not knowledgeable about the build process enough to understand why the compile script, for a Dockerised build, needs to access a git config file in a parent directory either not as me, or not owned by me; however, silently altering global git config in order to bypass a CVE-related security feature specifically to prevent this does pose the question of its appropriateness. It feels like sketchy behaviour, even when it's for benign reasons as I'm sure it is here.
(As an aside, the shell.nix in the repo root suggests NixOS compatibility, but this and (moreso) #7052) are blockers for usage on these systems -- though non-NixOS systems using Nix as a package manager would probably work fine.
How to reproduce?
./compile
in repo directory.Branch
v25.02
On which host OS are you running the build script and observing this problem?
NixOS 24.11
Are you building on Windows WSL2?
Relevant log URL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: