Skip to content
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

git: unknown object format 'sha256' #1441

Open
becknik opened this issue Sep 12, 2024 · 0 comments
Open

git: unknown object format 'sha256' #1441

becknik opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@becknik
Copy link

becknik commented Sep 12, 2024

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 becknik added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant