Open sbellem opened 3 years ago
Running into this issue.
Adding the following helps to overcome the issue with the $HOME
variable, but ...
preConfigure = ''
export HOME=`mktemp -d`
mkdir -p $HOME/.cargo/
touch $HOME/.cargo/.package-cache
'';
I then run into a new issue:
cargo build --release
Updating git repository `https://github.com/apache/teaclave-sgx-sdk.git`
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12)
error: failed to get `sgx_tstd` as a dependency of package `Helloworldsampleenclave v1.0.0 (/build/source/samplecode/helloworld/enclave)`
Caused by:
failed to load source for dependency `sgx_tstd`
Caused by:
Unable to update https://github.com/apache/teaclave-sgx-sdk.git
Caused by:
failed to clone into: /build/tmp.m9cLNARKZC/.cargo/git/db/teaclave-sgx-sdk-be25c2ad2f03718d
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
failed to resolve address for github.com: Name or service not known; class=Net (12)
Happening in "
pure
" mode, which more closely resemblesnix-build
conditions.To reproduce: