-
Notifications
You must be signed in to change notification settings - Fork 290
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
error: failed to get arrayref
as a dependency of package ctap2 v1.0.0 (/home/USER/OpenSK)
#619
Comments
Hi! This looks like a broader Rust setup problem to me. Quick question in case you haven't tried that: Can you run any example problem using |
Thanks for your response, @kaczmarczyck. I've created a simple example: -Cargo.toml -src/main.rs: fn main() { -output from cargo run: |
It was able to build after a clean build using tmux terminal on ubuntu. I am not sure why it worked in a different env. I'll close this ticket. Thanks for your time. |
I am happy you found your problem! |
I got a report from another user that they ran into the same problem. The solution seemed to be noon OpenSK specific, but the only general issue I found is this: It suggests running cargo with @trustkeysolutions Can I ask you to add more details about how you fixed the problem back then? |
An identical problem as @trustkeysolutions reported except I am not running wsl but in both Ubuntu 22.04 VM nad native modes. As @kaczmarczyck suggested, it was fixed by setting CARGO_NET_GIT_FETCH_WITH_CLI to true. |
I am getting the some errors when deploying OpenSK to nRF52840 dongle. I've added the information below. Any help would be appreciated it resolving this error so that I can get OpenSK running on the dongle. Thanks.
Expected Behavior
Expect to have deployed OpenSK to nRF52840 dongle after running the deployment
Actual Behavior
Getting the following error:
error: failed to get
arrayref
as a dependency of packagectap2 v1.0.0 (/home/USER/OpenSK)
Caused by:
failed to load source for dependency
arrayref
Caused by:
Unable to update registry
https://github.com/rust-lang/crates.io-index
Caused by:
failed to fetch
https://github.com/rust-lang/crates.io-index
Caused by:
error reading from the zlib stream; class=Zlib (5)
fatal: Failed to execute cargo: Command '['cargo', 'build', '--release', '--target=thumbv7em-none-eabi', '--features=with_ctap1']' returned non-zero exit status 101.
Steps to Reproduce the Problem
$sudo apt update
$sudo apt upgrade
$sudo apt install -y git python3 curl
$curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$git clone https://github.com/google/OpenSK.git
$./setup.sh
$sudo apt install python3-pip
$pip3 install --user colorama
$pip3 install --user tockloader==1.5.0
$pip3 install --user nrfutil
$./deploy.py --board=nrf52840_dongle_dfu --opensk --programmer=nordicdfu
Specifications
The text was updated successfully, but these errors were encountered: