devenv icon indicating copy to clipboard operation
devenv copied to clipboard

git: unknown object format 'sha256'

Open becknik opened this issue 5 months ago • 0 comments

Describe the bug Running devenv shell in a repo initialized with

git init --object-format=sha256

and a devenv.nix file yields to an error due to the non-default object format.

Logs

❯ devenv shell
• Building shell ...
error:
       … while fetching the input 'git+file:///home/<user>/devel/own/<project>'

       error:
       error: opening Git repository '"/home/<user>/devel/own/<project>"': unknown object format 'sha256'

✖ Command produced the following output:


✔ Building shell in 0.1s.
Error:   × Command `/nix/store/6ywyz24yw7ps2c6hjdnyvgp91d5mwkig-nix-2.21-devenv/bin/nix --show-trace --extra-experimental-features nix-
  │ command --extra-experimental-features flakes --option warn-dirty false --option eval-cache false --keep-going --max-jobs 12
  │ print-dev-env --profile /home/<user>/devel/own/<project>/<subproject>/devenv/gc/shell` failed with with exit code 1

[22:21:34] ~/devel/own/<project>/<subproject> main* ✘ 1
❯ devenv shell
• Building shell ...
error:
       … while fetching the input 'git+file:///home/<user>/devel/own/<project>'

       error:
       error: opening Git repository '"/home/<user>/devel/own/<project>"': unknown object format 'sha256'

✖ Command produced the following output:


✔ Building shell in 0.1s.
Error:   × Command `/nix/store/6ywyz24yw7ps2c6hjdnyvgp91d5mwkig-nix-2.21-devenv/bin/nix --show-trace --extra-experimental-features nix-
  │ command --extra-experimental-features flakes --option warn-dirty false --option eval-cache false --keep-going --max-jobs 12
  │ print-dev-env --profile /home/<user>/devel/own/<project>/<subproject>/.devenv/gc/shell` failed with with exit code 1

Version

❯ devenv version
devenv 1.0.5 (x86_64-linux)

becknik avatar Sep 12 '24 20:09 becknik