Skip to content

"authentication required but no callback set" when https to ssh redirect is configured in git #2842

Description

@pbek

Describe the bug

When you have this in your ~/.config/git/config:

[url "ssh://git@github.com/"]
    insteadOf = "https://github.com/"

...then you currently get this error message when creating the devenv.lock file:

✓ Validating lock                                                                                                                                                                                        640ms
  × Failed to lock inputs: 
           … while updating the flake input 'devenv'
   
           … while fetching the input 'github:cachix/devenv'
   
   
           error: connecting to remote 'https://github.com/cachix/devenv.git': authentication required but no callback set

Although doing a git clone https://github.com/cachix/devenv.git works.

To reproduce

  • set up the https to ssh redirect in ~/.config/git/config as mentioned above
  • mkdir devenv-test && cd devenv-test
  • devenv init
  • devenv shell
  • See error message authentication required but no callback set

Version

devenv 2.1.2 (x86_64-linux)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions