We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When programs.git-credential-oauth.enable = true;, nixos-rebuild fails with the following error:
programs.git-credential-oauth.enable = true;
nixos-rebuild
at /nix/store/a8yg0d34q9qfkc693p0mc2g12v5n50vp-source/modules/programs/git-credential-oauth.nix:33:52: 32| programs.git.extraConfig.credential.helper = [ 33| ("${cfg.package}/bin/git-credential-oauth" + lib.mkIf cfg.extraFlags | ^ 34| " ${lib.strings.concatStringsSep " " cfg.extraFlags}") error: cannot coerce a set to a string: { _type = "if"; condition = «thunk»; content = «thunk»; }
@tomodachi94
- system: `"aarch64-linux"` - host os: `Linux 6.12.0-rc4, NixOS, 24.11 (Vicuna), 24.11.20241018.4c2fcb0` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.24.9` - nixpkgs: `/nix/store/riqkpszjqk02bi1wppfg8ip5xvh102qd-source`
The text was updated successfully, but these errors were encountered:
😅 This is what I get for not writing tests. Fix (and a test case) coming soon.
Sorry, something went wrong.
git-credential-oauth: fix
6d6e864
lib.mkIf != lib.optionalString Closes nix-community#6005
Fix created at #6008. I also added some tests to avoid something as obvious as this from slipping through again 🙈
05d9bee
git-credential-oauth: fix use of mkIf and add tests
dee1d1e
Closes nix-community#6005
5d6dc9c
rycee
sumnerevans
berbiche
Successfully merging a pull request may close this issue.
Are you following the right branch?
Is there an existing issue for this?
Issue description
When
programs.git-credential-oauth.enable = true;
,nixos-rebuild
fails with the following error:Maintainer CC
@tomodachi94
System information
The text was updated successfully, but these errors were encountered: