-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run makes on NixOS systems which configure programs.git
#979
Comments
@kraftnix Thank you so much for this report! This is most likely related to this change: 0251c2a#diff-2c1c4ba2536c6703404deca94474d191fa0297bc0ede8a6413ca3185d8cbb1fdR233 @jpverde Can you please provide more context on the Git issue that forced us to to this and possible workarounds? Thanks! |
@kraftnix By the way, I'm guessing you want to keep your git config read only for reproducibility reasons? This is how I configure git using NixOS and Home Manager: https://github.com/dsalaza4/env/blob/main/modules/pkgs/git/default.nix The git config is still writable. |
Curious, I am also using
I remember the issue as well from other projects, here is the related
I would prefer to keep it read-only for reproducibility reasons. I also am not a fan of tools reconfiguring my settings globally, so if we could find a solution which keeps the git config changes project local that would be ideal. |
|
@kraftnix Hey! Were you able to find a solution for this? |
Unfortunately I never did seem to find a decent solution. It appears I worked around it by setting Something like: makeScript {
...
entrypoint = ''
require_env_var GIT_USER
require_env_var GIT_EMAIL
...
git config user.name $GIT_USER
git config user.email $GIT_EMAIL
'';
} This is definitely a bad workaround but it's been working in my CI since so I haven't come back to this issue. |
@kraftnix Oh wait a moment, this looks like a different problem!
If you want to use your global git configurations from a
|
In the above script it is a different problem indeed. But |
yeah, just tacking on on this one, editing users' global config leaves a pretty terrible taste in the mouth of the evaluator. took me a while to even figure out what was going on here. |
my guess here is that there's something a bit broken about your "using stable nix" checks. i'm executing it from flakes ( |
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
- remove _add_safe_directory function Signed-off-by: Robin Quintero <[email protected]>
feat(build): #979 remove _add_safe_directory
Hi everyone! A fix for this has been merged: https://github.com/fluidattacks/makes/pull/1165/files Make sure you update to the latest version. Let me know if things work for you now. |
- fix git config safe.directory error Signed-off-by: Robin Quintero <[email protected]>
feat(build): #979 fix git config error
- Upgrade /formatPython to /formatPython/default Signed-off-by: Robin Quintero <[email protected]>
- Upgrade /formatPython to /formatPython/default Signed-off-by: Robin Quintero <[email protected]>
- Upgrade /formatPython to /formatPython/default Signed-off-by: Robin Quintero <[email protected]>
feat(build): #979 upgrade formatpython prod
I had another look at the issue. The nix run github:fluidattacks/makes -- github:fluidattacks/makes@main /helloWorld 1 2 3 Happy to close the issue now. |
Problem
I am unable to run any makes commands in any NixOS system which uses NixOS to configure git (resulting in a read-only
~/.config/git/config
file).Reproduction Steps
~/.config/git/config
or configure NixOS withprograms.git.config.*
nix run github:fluidattacks/makes -- m github:fluidattacks/makes /helloWorld 1 2 3
Expected Result
I should be able to run
makes
on NixOS under a user with a read-onlyconfig
or NixOS configuredconfig
.I looked through the current documentation and issues and found nothing related to this problem.
The text was updated successfully, but these errors were encountered: