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

cargo-check fails with SSL connect error #455

Open
Mastermindaxe opened this issue Jun 11, 2024 · 1 comment · May be fixed by #396
Open

cargo-check fails with SSL connect error #455

Mastermindaxe opened this issue Jun 11, 2024 · 1 comment · May be fixed by #396
Labels
bug Something isn't working flake Related to running in pure environments

Comments

@Mastermindaxe
Copy link

Mastermindaxe commented Jun 11, 2024

Hi everyone!

When I add cargo-check.enable = true; my nix flake check invocation fails with the following message:

error: builder for '/nix/store/z1malgk1gx5qwpxv2pbb9ri1scglf56n-pre-commit-run.drv' failed with exit code 1;
       last 10 log lines:
       > Caused by:
       >   download of config.json failed
       >
       > Caused by:
       >   failed to download from `https://index.crates.io/config.json`
       >
       > Caused by:
       >   [35] SSL connect error (OpenSSL/3.0.13: error:16000069:STORE routines::unregistered scheme)
       >
       > nixfmt...................................................................Passed
       For full logs, run 'nix-store -l /nix/store/z1malgk1gx5qwpxv2pbb9ri1scglf56n-pre-commit-run.drv'.

I'm running an M2 Macbook Pro if that makes any difference. My nixfmt check runs flawlessly. It's only once I add cargo-check, cargo-clippy or even a custom hook with cargo audit. Am I doing sth wrong? Does it have to do with the sandboxing and the error message is just weird?

EDIT: Can't show the flake as it is work-related, but I can try to make a minimal example if needed

@sandydoo
Copy link
Member

Duplicate of #452.
PR #396.

@sandydoo sandydoo added bug Something isn't working flake Related to running in pure environments labels Jun 12, 2024
@sandydoo sandydoo linked a pull request Jun 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flake Related to running in pure environments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants